[Bugs] #1553 UNSP: cjson parser too buggy for exchange formats (such as Journal Entry Bundles) (was: CJSON parser too strict for exchange formats (such as Journal Entry Bundles))

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Nov 12 13:24:41 EST 2009


#1553: cjson parser too buggy for exchange formats (such as Journal Entry Bundles)
------------------------------------------+---------------------------------
    Reporter:  martin.langhoff            |          Owner:  alsroot                    
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  journal                    |        Version:  0.84.x                     
    Severity:  Unspecified                |       Keywords:                             
Distribution:  OLPC                       |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by martin.langhoff):

 Changed summary. As Tomeu correctly points out 'import cjson' imports the
 C implementation of the json parser -- different from 'import
 bitfrost.util.cjson' which imports the Canonical json implementation.

 This is a bug in cjson, the C implementation of the json parser.

 the version of cjson is current
 $ rpm -q python-cjson
 python-cjson-1.0.5-3.fc11.i586

 ... in a python session:
 >>> json.loads('"foo\/bar"')
 u'foo/bar'
 >>> cjson.decode('"foo\/bar"')
 'foo\\/bar'

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1553#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list