You need to sign in to do that
Don't have an account?
Lukesh Karmore
how to add Json in map With unique values
This is my code :
String JSONStr = res.getbody();
System.debug('Json String '+res.getbody());
if(res.getstatusCode() == 200 && res.getbody() != null){
List<Object> fmap = (List<Object>)JSON.deserializeUntyped(JSONStr);
System.debug('First Json Map' + fmap);
for(Object o : fmap){
System.debug('Each Object '+ o);
}
}
debug shows duplicate id values but json contain unique Ids
how to store it.
Thank you
String JSONStr = res.getbody();
System.debug('Json String '+res.getbody());
if(res.getstatusCode() == 200 && res.getbody() != null){
List<Object> fmap = (List<Object>)JSON.deserializeUntyped(JSONStr);
System.debug('First Json Map' + fmap);
for(Object o : fmap){
System.debug('Each Object '+ o);
}
}
debug shows duplicate id values but json contain unique Ids
how to store it.
Thank you
Hi,
Please find the solution.
Please mark it as the best answer so that other people would take references from it.
Thank You