Coerces JSON-like content to well-formed, embeddable JSON