JSON Serializer implementation.