While quering with the CAML query in the SharePoint REST API throws following error.
{ "error": { "code": "-1, Microsoft.Data.OData.ODataException", "message": { "lang": "en-US", "value": "Invalid JSON. A comma character ',' was expected in scope 'Object'. Every two elements in an array and properties of an object must be separated by commas." } } }
Request: ../sites/POCs/_api/web/lists/getByTitle('TestList2')/GetItems(query=@v1)?@v1={'ViewXml':'2'}