This Confluence instance is now read-only, please head over to the Algolia Confluence instance for the same more up-to-date information

What are the acceptable JSON formats?

What are the acceptable JSON formats?

Answer

When creating a new search collection for an app or store, you can import your data in a JSON format. Examples of acceptable JSON are mentioned below.

Nested JSON is not supported.

One record:

{ "id": "123", "attrib":"value" }

One record with list:

{ "id": "123", "attrib":"value", "list":["item1","item2","item3"] }

Multiple records:

[ { "id": "1", "attrib":"value1" }, { "id": "2", "attrib":"value2" } ]

Multiple records with list:

Note that if a schema field is a list, a record can have a single value either with or without square brackets. Both formats are acceptable and will be indexed.