collective.jsonmigrator.jsonsource

Read JSON files and insert them into transmogrifier pipeline.

Parameters

path (required):
 

Path to directory containing JSON files (look in example below).

Also possible to specify in some.package:path/to/json/directory way.

Example

Configuration:

[transmogrifier]
pipeline =
    source

[source]
blueprint = collective.jsonmigrator.jsonsource
path = some.package:/path/to/json/dir

JSON files structure:

some.package:/path/to/json/dir
    |-> 0/
        |-> 1.json
        |-> 2.json
        ...
        |-> 999.json
    |-> 1/
        |-> 1000.json
        |-> 1001.json
        ...

JSON file:

{
    "_path": "/Plone/front-page",
    "_type": "Document",
    ...
}