Hi,
I'm trying to get data for my music collection and I can't parse the JSON returned by /library/sections/5/all (where 5 is the id of my music collection).
I'm on PMS version 0.9.9.12, is there anything I can do about this?
Hi,
I'm trying to get data for my music collection and I can't parse the JSON returned by /library/sections/5/all (where 5 is the id of my music collection).
I'm on PMS version 0.9.9.12, is there anything I can do about this?
The issue was caused by a missing comma in a list of objects, Given that the construct } { is never valid JSON I just search and replace: JSON.parse(xhr.response.replace(/}[\s]*{/g, '}, {')), which fixes the issue.
It's disappointing that the JSON output of Plex isn't reliable though.
The issue was caused by a missing comma in a list of objects, Given that the construct } { is never valid JSON I just search and replace: JSON.parse(xhr.response.replace(/}[\s]*{/g, '}, {')), which fixes the issue.
It's disappointing that the JSON output of Plex isn't reliable though.
Thanks for reporting! It is a known issue that is on the loooong to-do list.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.