Marshalling and unmarshalling of data in JSON format.