Fix typo in json_serializer