Closed nichtich closed 10 years ago
Looks like incremental parsing can solve this, see http://search.cpan.org/~makamaka/JSON-PP-2.27203/lib/JSON/PP.pm#INCREMENTAL_PARSING
incremental parsing has been commited, the path option still has to be done.
We should better support a general method to split items (in the fix language) instead of this path idea, so I close this issue.
The current JSON importer can only handle line-based JSON as emitted by the JSON exporter. One should also be able to parse arbitrary JSON documents, including multiple objects in one file. For instance the following file includes three JSON objects:
In addition the importer should support a
path
option as introduced in Catmandu-Importer-XML. For instance the following file with optionpath=/record.*
could import the same three objects:This Perl Module may help implementing.