Skip to content

fireteam/yajs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yajs

   yajs is a simple package that provides a wrapper to the YAJL JSON
   lexer functions that allow tokenization of streams of JSON data
   without having to buffer up the whole data.

Examples:

    >>> from cStringIO import StringIO
    >>> from yajs import tokenize
    >>> for token in tokenize(StringIO('[1, 2, 3]')):
    ...     print token
    ... 
    ('start_array', None)
    ('value', 1)
    ('value', 2)
    ('value', 3)
    ('end_array', None)