Regarding the arangoimp question:

Line 391 of the input file is invalid JSON.
It contains a tab character (ASCII 9) which needs to be escaped in JSON but 
is not escaped in the input file.
This can be shown by piping the input file to the "jq" utility (not part of 
ArangoDB):

$ cat Downloads/to_391.json | jq
parse error: Invalid string: control characters from U+0000 through U+001F 
must be escaped at line 391, column 144

hexdump also reveals that there is an unescaped tab character in the last 
line:

$ hexdump -C .Downloads/to_391.json 
...
00011630  3a 22 42 61 6a 61 75 09  49 6e 64 6f 6e 65 73 69  
|:"Bajau.Indonesi|
...

Instead of the byte 09 there should rather be a \t in the input file.

When manually applying this change, the file can be imported successfully.

Best regards
Jan

Am Donnerstag, 30. März 2017 20:54:43 UTC+2 schrieb [email protected]:
>
>
> Hello,
>
> I'm a new user of Arangodb (mac os, latest version installed via 
> homebrew), and I have some troubles with two things:
> ⁓ importing a .json file as 'document': I have tried to import a somewhat 
> big .json file, where each element have different fields of properties.
>     I've begin to import the first hundred elements, and all works. And 
> so, I have tried to import the whole file, but arrangoimp was saying:
>                        "*[35764] ERROR error message:    expecting a JSON 
> array in the request*"
>     so, I have gradually reduce the number of elements that I was 
> importing, but it was always wrong.
>     Until I've reach the line 390 (one element by line).
>     When I'm adding the element of line 391, it becomes buggy, even this 
> line is syntactically correct.
>     I have read that there is no limitations on .json array, and 
> Arrangodb's documentation seems to not mention things like this added *in 
> *Arrangodb.
>     I have put the two files here (https://pastebin.com/rYY2aE3t    and  
> https://pastebin.com/26Q0hC6U  ),
> *So what's wrong with this line or with Arangodb?*
>
> ⁓ displaying graph: whatever it's a subset of my big .json file *which is 
> imported well*; or another document collection directly created in 
> Arrangodb web interface; if I make a graph from one of this document to 
> this document *with a blank edge definition*; and so, wanting to see a 
> graph of alone nodes (to link them *after*); Arrangodb web interface 
> seems to randomly pick one node and print it. But when you have hundreds of 
> lonely nodes, i.e. without defined edges; and you want to define the very 
> edges through the GUI; and there's only one node: it is a but difficult.
>
> *So how to display all nodes in a graph, even there are no edges between 
> them?*
> Melop
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to