Packages search engine
Browse package by: Categories | Names | Status
Find packages using a space separated keyword filter.
Description of jsonparser
- Package: jsonparser-2008.0808
- Author: Willem de Jong
- Packager: Christophe Romain
- Date:
- Category: misc, text
- Supported arch: darwin-powerpc darwin-x86 freebsd-x86 linux-alpha linux-amd64 linux-arm linux-armel linux-hppa linux-ia64 linux-mips linux-mipsel linux-powerpc linux-s390 linux-sparc linux-x86 repos windows
- Depends: kernel stdlib xmerl
- Sources url: (erl) http://forum.trapexit.org/download.php?id=158
- Sources archive: jsonparser-2008.0808.tar.gz
- Home Page: http://forum.trapexit.org/viewtopic.php?p=44029
- Summary: an efficient parser for json documents with a SAX-like API
- Abstract: The parser has a SAX-like API. It also has a mechanism to parse input data in blocks - if it reaches the end of the input data, it will call a function to provide the next block. The combination of these properties results in a parser that can input of arbitrary size, or a stream of data.
Included is a handler function that translates the SAX events into the same output format produced by mochijson2. Looks like this: {struct, [{<<"key1">>, <<"value1">>}, {<<"key2">>, 123}]}.
The parser consists of just 1 file, with some edoc documentation and a couple of very simple examples included. It only works on UTF-8 encoded input (which implies that it can also parse ASCII, of course).
It can be redistributed under the terms of the GNU Lesser General Public License.
Download Erlang
You can download Erlang to try it now.
Download
Explore Erlang packages
Search through more than 275 public contributions to Erlang.
Find packages
Discuss
Visit CEAN forum and discuss subjects concerning Erlang.
Go to CEAN forum