Guillaume,
I checked this out with people in the know. Actually, unescaped
newline in the middle of a token like your string is not allowed in
JSON, much like in java.

{"script":"2\n4",
"hi":"hej"}

in the Chrome plugin is working, while

{"script":"2
4",
"hi":"hej"}

is illegal JSON and will throw the parsing error. This is unfortunate
for the readability of a script, but apparently there is no good way
around it. So, the client library needs to convert linebreaks into \n
if that is interesting. Do others have input on this?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Mon, Aug 22, 2011 at 2:22 PM, Guillaume ALLEE
<[email protected]> wrote:
> Hi,
>
> I am using a simple rest client in chrome to try to send  my gremlin script
> (working without a line break)
>
> https://chrome.google.com/webstore/detail/fhjcajmcbmldlhcimfajhfbgofnpcjmb
>
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-Gremlin-plugin-line-break-in-script-tp3191845p3275191.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to