#1 2015-05-09 18:17:45

dexter
Member
Registered: 2015-04-24
Posts: 53

_Json and single quote JSON

Hi,

if I try TDocVariant.NewJSON() with the following input: {'id':'10'} - it raises error.

If instead of single quotes I'm using double quotes, i.e. {"id":"10"}, it's fine.

Isn't allowed in JSON to put values and names in singe quotes?

Offline

#2 2015-05-09 20:13:21

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,275
Website

Re: _Json and single quote JSON

No.

See http://json.org
And  http://synopse.info/files/html/Synopse% … tml#TITL_2

But in mORMot you can use {id:"10"}

Offline

Board footer

Powered by FluxBB