Create a new view with the following settings:
- Provide REST export and add path.
- Make sure Format is set to Serializer and accepted request format is set to json
- Add filter for Content: Type (= [your format])
- Add to Content Field: Comments
source
to share