{"repo":"apache/couchdb-jiffy","free":true,"listed":false,"github":"https://github.com/apache/couchdb-jiffy","clone":"git clone https://github.com/apache/couchdb-jiffy.git","description":"Mirror of Apache CouchDB","language":"C","stars":10,"topics":["erlang","network-client","http","cplusplus","couchdb","big-data","cloud","content","database","network-server"],"license":null,"category":"databases-storage","readme_excerpt":"Jiffy - JSON NIF for Erlang ============================ Jiffy is a JSON NIF library that focuses on correctness over performance. It’s not the fastest JSON library for Erlang in standard benchmarks, but it endeavors to be as fast as possible while affecting total system performance as little as possible. Usage ----- Jiffy is a simple API. The only thing that might catch you off guard is that the return type of jiffy:encode/1 is an iolist even though it returns a binary most of the time. A quick note on Unicode. Jiffy only understands UTF-8 in binaries. End of story. Errors are raised as error exceptions. Eshell V5.8.2 (abort with ^G) 1 jiffy:decode( ). {[{ , }]} 2 Doc = {[{foo, [ , 2.3, true]}]}. {[{foo,[ ,2.3,true]}]} 3 jiffy:encode(Doc). jiffy:decode/1,2 ------------------ jiffy:decode(IoData) jiffy:decode(IoData, Options) The options for decode are: return maps - Tell Jiffy to return objects using the maps data type on VMs that support it. This raises an error on VMs that don't support maps. {null term, Term} - Returns the specified Term instead of null when decoding JSON. This is for people that wish to use undefined instead of null . use nil - Returns the atom nil instead of null when decoding JSON. This is a short hand for {null term, nil} . return trailer - If any non-whitespace is found after the first JSON term is decoded the return value of decode/2 becomes {has trailer, FirstTerm, RestData::iodata()} . This is useful to decode multiple terms in a single binary. de","default_branch":null,"files":null,"tree":[],"storefront":"/r/apache","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apache/couchdb-jiffy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}