Runpath Interview Question

How to test if an HTTP response is valid JSON