File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,22 @@ The URI of each document will default to a UUID followed by `.json`. To include
4949include the ` --uri-include-file-path ` option. You can also make use of the
5050[ common import features] ( ../common-import-features.md ) for controlling document URIs.
5151
52+ Note that Flux's support for an array of objects requires the root of the JSON to be an array. For example, consider
53+ a file containing the following JSON:
54+
55+ ```
56+ {
57+ "items": [
58+ {"id": 1},
59+ {"id": 2}
60+ ]
61+ }
62+ ```
63+
64+ Flux can only import the above JSON as an object which becomes a single document. If you wish to instead import each
65+ object in the ` items ` array as a separate JSON document, consider pre-processing the file by removing the outer
66+ object so that the file only contains an array.
67+
5268## Importing JSON Lines files
5369
5470If your files conform to the [ JSON Lines format] ( https://jsonlines.org/ ) ,
You can’t perform that action at this time.
0 commit comments