Introduce serializer for better json convention