Re: Backslashes in Edn

2014-11-26 Thread Andy Dwelly
Update. I've played around with pr-str and prn-str in the repl, and discovered that they both should work fine. In fact it turns out that my problem is nothing to do with Edn or anything Clojuresque at all, and in fact everything to do with the database that's responsible for the storage.

Backslashes in Edn

2014-11-25 Thread Andy Dwelly
I've recently been serialising some data using Edn, and to date this has caused no problems. During some tests today, I serialised a string representing a file path that originated on a windows machine \My Documents\somedoc.txt. Edn throws a runtime exception when reading this back claiming:

Re: Backslashes in Edn

2014-11-25 Thread Jonathan Winandy
​Hi Andy, ​ If I stick with Edn are there any other gotchas that should be sanitised ? The specs of String literals is a bit implicit : https://github.com/edn-format/edn#strings refers to https://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.10.6 . I think there are no ways to

Re: Backslashes in Edn

2014-11-25 Thread James Reeves
On 25 November 2014 at 12:23, Andy Dwelly andydwe...@gmail.com wrote: I've recently been serialising some data using Edn, and to date this has caused no problems. During some tests today, I serialised a string representing a file path that originated on a windows machine \My

Re: Backslashes in Edn

2014-11-25 Thread Andy Dwelly
Thanks for both suggestions guys, and yes - I'm using prn-str - apparently the wrong one. It's a trivial change so I will start there. Thanks again, appreciate it. Andy On Tuesday, November 25, 2014 2:00:44 PM UTC, James Reeves wrote: On 25 November 2014 at 12:23, Andy Dwelly