File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed 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
49
49
include the ` --uri-include-file-path ` option. You can also make use of the
50
50
[ common import features] ( ../common-import-features.md ) for controlling document URIs.
51
51
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
+
52
68
## Importing JSON Lines files
53
69
54
70
If your files conform to the [ JSON Lines format] ( https://jsonlines.org/ ) ,
You can’t perform that action at this time.
0 commit comments