How do I parse a JSON-encoded response?
Use the JSONParser class methods to parse JSON-encoded content. These methods enable you to parse a JSON-formatted response that's returned from a call to an external service, such as a web service callout. The following are samples that show how to parse JSON strings. This example parses a JSON-formatted response using JSONParser methods.
Is it possible to parse JSON objects in type-safe manner?
3. Parsing JSON Objects in a Type-Safe Manner For future readers: Alain's links only show parsing into Objects, not sObjects or custom Objects as asked. I couldn't find a way to do that because your JSON will never happen to have '__c' attached to the field names, so it will never match your custom class.
How do I edit the JSON in the editor?
To access JSON Editor, open the lens or dashboard you want to edit, and press CTRL+E for PCs or CMD+E for Macs. Modify the JSON in the editor. You can use standard keyboard shortcuts for editing functions and search. To go back to the explorer and see how edits to the JSON appear in the lens or dashboard, click Done.
See more
How to retain edits in JSON?
To retain your edits, save the lens or dashboard. Changes made in the JSON editor are not saved until you explicitly save the lens or dashboard.
What is JSON editor?
JSON Editor displays the JSON of a lens or dashboard and lets you quickly see the effect of your edits in the running asset.
Example: Parsing a JSON Response from a Web Service Callout
This example parses a JSON-formatted response using JSONParser methods. It makes a callout to a web service that returns a response in JSON format. Next, the response is parsed to get all the totalPrice field values and compute the grand total price.
Example: Parse a JSON String and Deserialize It into Objects
This example uses a hardcoded JSON string, which is the same JSON string returned by the callout in the previous example. In this example, the entire string is parsed into Invoice objects using the readValueAs method.