API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1
Posted: January 10th, 2023, 8:09 pm
When posting a file through the API (using multi part form), the JSON been returned is invalid (the upload works just fine)
The docs (wiki/configuration/3.7/api#addur) state it should return
But it's returning
Pasting this into jsonformatter.curiousconcept, it reports two "fixes"
* Info: Replaced incorrect quotes.
* Info: Converted true to lowercase.
While "some" parses may fix this, I'm using Swift, which won't auto correct this - based on my limited testing, this seems to be the only response which uses single quotes (and true is incorrectly formatted)
(Apologies, I did a quick search, but could not find any other response which seemed to match this issue)
The docs (wiki/configuration/3.7/api#addur) state it should return
Code: Select all
{
"status": true,
"nzo_ids": ["SABnzbd_nzo_kyt1f0"]
}
Code: Select all
{'status': True, 'nzo_ids': ['SABnzbd_nzo_vfglszd6']}
* Info: Replaced incorrect quotes.
* Info: Converted true to lowercase.
While "some" parses may fix this, I'm using Swift, which won't auto correct this - based on my limited testing, this seems to be the only response which uses single quotes (and true is incorrectly formatted)
(Apologies, I did a quick search, but could not find any other response which seemed to match this issue)