JSON::SL

Fast, Streaming, and Searchable JSON decoder
Download

JSON::SL Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Mark Nunberg
  • Publisher web site:
  • http://search.cpan.org/~mnunberg/

JSON::SL Tags


JSON::SL Description

JSON::SL is a Perl module designed from the ground up to be easily accessible and searchable for partially received streamining content.It uses an embedded C library (jsonsl) to do the streaming and most of the dirty work.JSON::SL allows you to use the JSONPointer URI/path syntax to tell it about certain objects and elements which are of interest to you. JSON::SL will then incrementally parse the input stream, returning those selected objects to you as soon as they arrive.In addition, the objects are returned with extra context information, which is itself another JSONPointer path specifying the path from the root of the JSON stream until the current object.Since I hate SAX's callback interface, and since almost all the boilerplate for a SAX interface needs to be done for just about every usage case, I have decided to move over the core work of state stacking and such to the C library itself. This means minimal boilerplate and ultra fast performance on your part.SYNOPSIS # An incomplete stream.. my $txt = set_jsonpointer( ); my @results = $json->feed($txt); $results->{Value}-> == 42; $results->{Value} eq 'a string'; $results->{Path} eq '/some/partial'; $results->{Path} eq '/other/partial';Product's homepage


JSON::SL Related Software