Rephrased the JSON serialization part for clarity.