Test serialize_json