The Name property is a primitive and should appear unescaped in the CSV like so:
Import from CSV
The NestedObject property is a nested JSON object and as such should be decomposed into multiple properties - one for each nested property.
The decomposition rule goes as follows:
[the name of the parent property].[name of the inner object property]
The import process will combine properties with the same prefix back into one JSON object.
The ArrayObject property is an array and as such contains multiple values. These should be escaped as a string like so:
Last thing we need in order for an import to work is to add the collection property. If we don't, the name of the collection will derive from the CSV file name.
If we want to import the document with a specific id we need to include an @id property too.
The complete CSV line should look like this:
Samples/1-A,Import from CSV,Inner Object,"[1,2,3,4]",Samples
Now that we've got a valid CSV file we can import it to RavenDB by selecting the target database and navigating to Settings>Import Data>From CSV file
Import CSV file
After importing the CSV file, the resulting document should look like the document