incubator-lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Humphrey (JIRA)" <>
Subject [jira] Updated: (LUCY-74) JSON parser internal API
Date Tue, 24 Nov 2009 20:27:39 GMT


Marvin Humphrey updated LUCY-74:

    Attachment: json_support.diff

Lucy::Util::Json supplies four functions:

  * to_json
  * from_json
  * spew_json
  * slurp_json

The to_json() and from_json() functions operate on strings, and throw
exceptions if anything goes wrong.  The spew_json() and slurp_json() fuctions
operate on a Folder and a filepath; they set Err_error and return false/NULL
when something is awry, allowing internal C calling code to handle error

> JSON parser internal API
> ------------------------
>                 Key: LUCY-74
>                 URL:
>             Project: Lucy
>          Issue Type: Improvement
>          Components: Core, Perl bindings
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>            Priority: Blocker
>         Attachments: 035-json.t, Json.bp, Json.c, json_support.diff, TestJson.bp, TestJson.c
> Lucy will store most index metadata as JSON, so we need a JSON
> encoder/decoder.  Eventually, we should write our own, but for now, this patch
> supplies an API and leaves it up to the binding to fill in an implementation.
> The supplied Perl binding implementation uses the CPAN module JSON::XS and
> translates back and forth between Perl scalar-hash-array data structures and
> Lucy CharBuf-Hash-VArray data structures.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message