JSON Jamboree: Fixed vs. Dynamic Deserialization Showdown for Apex Callouts
When you are in Salesforce and using Apex to make callouts to JSON Web Services, you have a choice about how you can deal with the JSON for outgoing and incoming serialization and deserialization. I cover:
1) Apex with Fixed JSON classes or structures, along with some of the benefits;
2) Apex with Dynamic Deserialization, which takes code and more effort, but can allow you to process more complex JSON;
3) How you can use Custom Meta Data to handle the incoming data dynamically, giving you a flexible system that can be modified without redeploying code.