[erlang-questions] fast JSON parser in C

Richard A. O'Keefe ok@REDACTED
Fri Jul 25 04:16:16 CEST 2008


On 24 Jul 2008, at 10:49 pm, Joe Armstrong wrote:

> Since JSON seem to be ubiquitous is seems to me that there would be
> a strong case for a couple of new BIFs,  term_to_json and  
> json_to_term.

I've written this up as an EEP and posted it to the eeps mailing list.
Joe, when it turns up at the EEPs site, could you have a really good
look at it and see if it fits what you meant?  If not, maybe you
could write a better EEP.

Basically,
    erlang:term_to_json(Term[, Options])
is seen as a device for generating JSON to be consumed by programs
in other languages (such as Javascript and Perl), and
    erlang:json_to_term(Io_List[, Options])
is seen as a device for accepting JSON produced by such programs.

In writing my EEP, I cared about JSON->term->JSON round trip
consistency, but not about term->JSON->term.

>

--
If stupidity were a crime, who'd 'scape hanging?










More information about the erlang-questions mailing list