Clojure-Contrib

c.c.json/json-str handles maps with keys containing quotes incorrectly

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

Consider:

> (println (json-str {"\"" 1})) 
{""":1} 
</code></pre>

...while I (and my parsers) would expect <pre><code>{"\"":1}
.

This happens in both contrib 1.2.0 and 1.3-alpha1.

Activity

Jan Rychter made changes -
Field Original Value New Value
Assignee Jan Rychter [ jwr ]
Jan Rychter made changes -
Attachment clojure-contrib-json-98.patch [ 10004 ]
Jan Rychter made changes -
Status Open [ 1 ] Resolved [ 5 ]
Resolution Completed [ 1 ]
Patch Code and Test
Jan Rychter made changes -
Resolution Completed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Assignee Jan Rychter [ jwr ]
Stuart Sierra made changes -
Assignee Stuart Sierra [ stuart.sierra ]
Stuart Sierra made changes -
Status Reopened [ 4 ] In Progress [ 3 ]
Stuart Sierra made changes -
Status In Progress [ 3 ] Open [ 1 ]
Stuart Sierra made changes -
Status Open [ 1 ] Resolved [ 5 ]
Resolution Completed [ 1 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: