couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Cottlehuber (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1294) Use Jiffy for JSON serialization
Date Thu, 20 Feb 2014 09:32:19 GMT


Dave Cottlehuber commented on COUCHDB-1294:

>From recent discussion on user@ we should get jiffy in and also confirm if we should reject
JSON with duplicate names inside objects. Per [JSON spec], ` The names within an object SHOULD
be unique.`.

(term@akai)16> jiffy:decode(<< "{\"foo\":\"bar\", \"few\":\"bar\"}" >>).

(term@akai)17> jiffy:decode(<< "{\"foo\":\"bar\", \"foo\":\"bar\"}" >>).
[JSON spec]:

> Use Jiffy for JSON serialization
> --------------------------------
>                 Key: COUCHDB-1294
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core, HTTP Interface
>    Affects Versions: 1.2
>            Reporter: Paul Joseph Davis
>              Labels: json
>         Attachments: 0001-Import-Jiffy.patch, 0002-Remove-old-ejson-app.patch
> Jiffy is a NIF for JSON serialization. I wrote it quite a while ago but have finally
gotten around to writing the integration for CouchDB. This is a direct replacement for ejson
which does much less parsing in C. Jiffy is as close to mochijson2 (with our custom objects)
as humanly possible. At the moment there are no known differences in output. Jiffy itself
has been tested fairly extensively by a couple different groups so I'm fairly confident there
aren't any major bugs left.

This message was sent by Atlassian JIRA

View raw message