JSON (JavaScript Object Notation) is a text-based data interchange format that is used to transmit, transport and store data. It is commonly used to exchange data between web applications, client and server endpoints, database systems and more.
The best way to parse JSON data
Let’s see an example:
public class MyClass {
public String field1;
public String field1;
public static MyClass parse(String json) {
return (MyClass) System.JSON.deserialize(json, MyClass.class);
}
}
More examples here