conditionally parsing as JSON (sometimes request does it for us)