jiffy icon indicating copy to clipboard operation
jiffy copied to clipboard

JSON NIFs for Erlang

Results 32 jiffy issues
Sort by recently updated
recently updated
newest added

When the data size is large enough, the encoded result will be segmented. **Small size data:** `jiffy:encode(lists:seq(1, 50)).` Result: `` **Large size data:** `jiffy:encode(lists:seq(1, 5000)).` Result: ``` [, , ,...

Add -fPIC to avoid the following build failure: ``` /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: /tmp/cc0ULrdG.ltrans1.ltrans.o: relocation R_X86_64_PC32 against symbol `dec_destroy' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: final...

>jiffy:decode(). ** exception error: {131,invalid_string} in function jiffy:decode/2 (src/jiffy.erl, line 71)

This PR adds the option `max_levels` to `jiffy:decode`. This option allows you to provide a `{max_levels, non_neg_integer()}` as option. Jiffy then decodes un to N levels for the JSON, and...

Right now jiffy requires keys in maps or keyword tuples to be strings to be successfully encoded. If existing keys in map are integers - whole map should be recreated...

I guess it is possible to do this without Mix project, but I'm not sure how to do that in Erlang. Optionally, It can be moved to a separate project,...

This pull request is a rewrite of #139 that uses @davisp's approach to including pre-encoded JSON in the input. It adds a new function `jiffy:partial_encode/2` that takes an array or...

add attempt_atom flag, which is compatable with jsx:decode(Bin, [{label, attempt_atom}])

Currently the LTO (link time optimisation) check is done by trying to compile a single object file with the -flto option. This way the check does not cover the case...