JSON is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate, system.json have two method serialize() and Deserialization().
You can handle Apex objects similarly to sObjects with the System.JSON class.