You need to sign in to do that
Don't have an account?
udayar_jayam
Convert JSON to MAP
I want to store key and value for the following json dynamically.
Please advise on this.
Key as "01u9000000Ag0bbAAB" and value as "203" String input = '[{"01u9000000Ag0bbAAB":"203","01u9000000Ag0bZAAR":"23","Id":"00k0w000003HeFhAAK"}]';
Please advise on this.
Greetings to you!
You need to use deserializeUntyped(jsonString) method that will deserialize the specified JSON string into collections of primitive data types.
Please try below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas