add serializer for rendering custom json api