Should probably make sure JSON is valid first.