You need to sign in to do that
Don't have an account?

Modify JSON object in salesforce
Hi,
I am creating JSON object in salesforce using
I keep adding some fields and values at different hierarchy in this object, but while doing this if I get some different values later for my other computations, I would like to modify already created values in this above object.
So my question is whether I can modify the JSON object or not ?
If yes, How? It would be good if you provide some good links or sample code.
Thanks,
Abhishek
I am creating JSON object in salesforce using
JSONGenerator gen = JSON.createGenerator(true);
I keep adding some fields and values at different hierarchy in this object, but while doing this if I get some different values later for my other computations, I would like to modify already created values in this above object.
So my question is whether I can modify the JSON object or not ?
If yes, How? It would be good if you provide some good links or sample code.
Thanks,
Abhishek