Runpath interview question

How to test if an HTTP response is valid JSON