php - Remove parentheses in start and end of JSON using javascript -
i doing api request in php through curl. result of request json. but, json between parentheses, this:
({ "version": "3.2.2 build 276 (20121126)", "type": "clipquery", "select": { "query": "world" }, "limit": "", "numberofresults": 17, "results": [ ], "errors": [ ], "debug": { "runtime": 0.046874046325684 } })
jsonlint says json invalid. , that's correct. but, can't find how remove parentheses.
Comments
Post a Comment