HTML Comment in the WC REST API JSON output
WP Super Cache seems to be appending an HTML comment to the WC REST API JSON output, this causes invalid syntax errors.
What queries are you sending where you're seeing the HTML comments? The wp_cache_add_to_buffer() function checks if "<html" is found in the content of the request. If it's not found, then it doesn't add a comment, but instead dumps them to the DEBUG log instead.
Hi @donnchawp, I didn't see the actual comment, I just received an invalid syntax report and when I suggested deactivating WP Super Cache the problem was resolved. I will activate Super Cache on my dev server and give you some more information tomorrow.
Bump! Did you track down what the requests were? Can you try the development code here as it has better support for the JSON api.
Closing this for now because of the lack of activity on this. We can always reopen in the future if needed.