Forum Discussion

chaspne's avatar
chaspne
New Contributor
10 years ago

Illegal unquoted character error

Hi,
 
I am hoping you may be able to help me with why I am getting a certain error message. I think it may be because the request is not in a strict JSON format.
 
I am sending the request using Media Type = application/json. 
 
The Method = PUT
 
This is the request (I have replaced actual values with xxxx for privacy reasons but the construction is as I am sending it)
 
{
    "registrationType":"xxxx",
    "registrant":{
        "myId":"xxxx"
    },
    "firmwareVersion":"xxxx",
    "license":"-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[LicenseInfo]
Owner = xxxx
Id = xxxx
LicenseString = xxxx
Revision = 1
[LicenseOptions]
Type = xxxx
RegistrationDate = 01/29/2015
ExpirationDate = xxxx
LicenseMode = xxxx
UserLimit = xxxx
ConcurrentConnections = xxxx
Special = None
SiteWideLicense = xxxx
ClusterNodes = xxxx
OEM = off
[xxxxxxxxxxxxxxxxxxx]
Start = 01/29/2015
Stop = 01/30/2016
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
xxYEARECAAYFAlTLsscACgkQ+ts+PoSKFF0EhACbBmH3fuuWpD+2VjpjwgLxxTN5
FJIAnAkaXhMXV1X76haN5aldMxxyC7C+
=xxxx
-----END PGP SIGNATURE-----"
}
 
The response is ...
 
 
 <message>Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value at [line:7, column:51]</message>
 
 
Kind regards
 
Chas
No RepliesBe the first to reply