BREAKING API change: Format of data returned in "Bulk request" mode has changed
|Reported by:||tsteur||Owned by:||mattab|
|Priority:||major||Milestone:||1.12 - The Great 1.x Backlog|
Description (last modified by matt)
NOTE: the code is API BREAKING only if you were early user of this feature. Please check the client code as of 1.12-b16 to make sure it works well.
wanted to integrate the new Dashboards API into Piwik Mobile by using API.getBulkRequest method.
Unfortunately, the return JSON of API.getReportMetadata seems to be invalid. Getting an error when trying to parse JSON in Browser as well as on Mobile Devices. Would be nice to have this fixed in Piwik 1.12 otherwise Dashboards won't work in Mobile App.
To reproduce simply goto http://jsfiddle.net/5PPxD/ , press Run and watch console.
You will see the following error message:
Uncaught SyntaxError: Unexpected token S.
Looks like the problem is caused by a documentation 'See the "Search Engines & Keywords" report for more '... Just use http://json.parser.online.fr/ to validate the JSON.
Change History (5)
comment:2 Changed 11 months ago by matt (mattab)
- Owner set to mattab
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 11 months ago by matt (mattab)
- Description modified (diff)
- Summary changed from API.getBulkRequest returns invalid JSON to BREAKING API change: Format of data returned in "Bulk request" mode has changed