Permalink
Browse files

Changed JSON encoding to to use for strings only

  • Loading branch information...
1 parent af6dba5 commit 9900d5e58dd076bff93832845c2370b78dae3936 Damien Katz committed Mar 24, 2011
Showing with 84 additions and 351 deletions.
  1. +1 −1 c_src/decode.c
  2. +39 −347 c_src/encode.c
  3. +2 −2 c_src/json.c
  4. +42 −1 src/json.erl
View
@@ -245,7 +245,7 @@ reverse_tokens(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
/* the only time we do this is when we can't allocate a binary. */
ret = enif_make_tuple(env, 2,
enif_make_atom(env, "error"),
- enif_make_atom(env, "insufficient memory")
+ enif_make_atom(env, "insufficient_memory")
);
goto done;
Oops, something went wrong.

0 comments on commit 9900d5e

Please sign in to comment.