Code: Select all
$ curl -X POST -u admin:${PASSWORD} -H "content-type: application/json" https://${YOUR_IP}/rest/file/read --data '{"file":"my-test.backup","chunk-size":"4096","offset":"0"}' | jq
parse error: Unfinished string at EOF at line 1, column 20
Code: Select all
SyntaxError: Bad control character in string literal in JSON at position 16
Again, that is at an un-escaped null byte, which according to the JSON spec are not allowed un-escaped: https://www.json.org/json-en.html
'0020' . '10FFFF' - '"' - '\'