Title: cjson dose not decode \/ properly
Type: behavior Stage: resolved
Components: None Versions: 3rd party
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Richard.Delorenzi, christian.heimes, ezio.melotti
Priority: normal Keywords:

Created on 2012-10-29 14:21 by Richard.Delorenzi, last changed 2012-10-29 14:41 by ezio.melotti. This issue is now closed.

Messages (3)
msg174114 - (view) Author: Richard Delorenzi (Richard.Delorenzi) Date: 2012-10-29 14:21
This code produces the wrong result

import cjson

It produces '\\/', it should produce '/'

cjson version 1.0.5-4build1
msg174115 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2012-10-29 14:24
cjson is a third party module and not part of Python's standard library. Please report the error to the author of the cjson package. 

Python 2.7 has a builtin json encoder and decoder. The package is called 'json'.
msg174117 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012-10-29 14:41
This works fine with the standard json module.
>>> json.loads(json.dumps('/'))

FWIW 'json' also has C accelerations.
Date User Action Args
2012-10-29 14:41:45ezio.melottisetnosy: + ezio.melotti

messages: + msg174117
stage: resolved
2012-10-29 14:24:23christian.heimessetstatus: open -> closed
versions: + 3rd party, - Python 2.7
nosy: + christian.heimes

messages: + msg174115

resolution: not a bug
2012-10-29 14:21:13Richard.Delorenzicreate