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.