Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A super lightweight C JSON parser
C JavaScript
branch: master

This branch is 2 commits ahead, 40 commits behind quartzjer:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
testData
.gitignore
Makefile
README
js0n.c
js0n.h
js0n.js
js0n_struct.c
js0n_test.c
normal.js

README

js0n - the "cheapest" c json parser possible?

A one-pass super low overhead parsing walk of the raw bytes and no mem copying of any sort, fills in a simple array of offsets and lengths of the first depth array values or object key/values. It should parse any valid json, but trades full validation for efficiency (some invalid json will still parse).  Excellent for low level high speed scanning/routing of small chunks of json.

Parsing this:

{"foo":"bar","barbar":[1,2,3],"obj":{"a":"b"}}

Would result in:

2,3,8,3,14,6,22,7,30,3,35,9

Something went wrong with that request. Please try again.