Rationale behind the JSON -> CJSON switch in Sugar codebase?

Martin Langhoff martin.langhoff at gmail.com
Thu Nov 12 11:09:10 EST 2009


On Thu, Nov 12, 2009 at 4:59 PM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> Then maybe yes, I am seeing a bug in cjson that parses 'foo\/bar' incorrectly.

Confirmed. In a python session:

>>> json.loads('"foo\/bar"')
u'foo/bar'    <== correct
>>> cjson.decode('"foo\/bar"')
'foo\\/bar'   <== incorrect



m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff



More information about the Devel mailing list