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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -