I am doing an API request in PHP through curl. The result of my request is JSON. But, the JSON is between parentheses, like this:
({
"version": "3.2.2 build 276 (20121126)",
"type": "clipquery",
"select": {
"query": "world"
},
"limit": "",
"numberofresults": 17,
"results": [
],
"errors": [
],
"debug": {
"runtime": 0.046874046325684
}
})
JSONLint says that my JSON is invalid. And that's correct. But, I can't find how to remove the parentheses.