Re: [Pharo-users] STON encoding of slashes

2017-01-31 Thread Sven Van Caekenberghe
> On 18 Jan 2017, at 16:38, Sven Van Caekenberghe wrote: > > So my conclusion would be (while writing), always escape $\ and not $/, in > pure STON mode (the default), escape $' and not $", in JSON mode, escape $" > and not $'. I implemented these changes in writing behaviour: === Name: STO

Re: [Pharo-users] STON encoding of slashes

2017-01-19 Thread Peter Uhnak
On Wed, Jan 18, 2017 at 04:38:15PM +0100, Sven Van Caekenberghe wrote: > Being a superset means that you get a simple JSON parser (and even limited > writer) for free once you install STON (or once it is part of the Pharo > image, as it is now). It also means that we can fall back to the JSON spe

Re: [Pharo-users] STON encoding of slashes

2017-01-18 Thread Sven Van Caekenberghe
> On 18 Jan 2017, at 16:20, Peter Uhnak wrote: > > On Wed, Jan 18, 2017 at 03:38:17PM +0100, Sven Van Caekenberghe wrote: >> So talking only about the encoding/writing phase, the conclusion would be > > 10. Generators > > A JSON generator produces JSON text. The resulting text MUST > st

Re: [Pharo-users] STON encoding of slashes

2017-01-18 Thread Peter Uhnak
On Wed, Jan 18, 2017 at 03:38:17PM +0100, Sven Van Caekenberghe wrote: > So talking only about the encoding/writing phase, the conclusion would be 10. Generators A JSON generator produces JSON text. The resulting text MUST strictly conform to the JSON grammar. I guess the ABNF table is

Re: [Pharo-users] STON encoding of slashes

2017-01-18 Thread Sven Van Caekenberghe
So talking only about the encoding/writing phase, the conclusion would be - not to escape $/ - escape everything with code points [0,31], using named escapes if they exist, else \u - escape $\ itself That leaves the question about $' and $". $' is used in STON as string delimiter, so i

Re: [Pharo-users] STON encoding of slashes

2017-01-18 Thread Peter Uhnak
On Wed, Jan 18, 2017 at 11:11:06AM +0100, Christophe Demarey wrote: > > > Le 18 janv. 2017 à 09:51, Sven Van Caekenberghe a écrit : > > > > Hi Christophe, > > > >> STON toString: 'g...@github.com:foo/bar.git’ => > >> ''g...@github.com:foo\/bar.git’' > >> It used to be ''g...@github.com:foo/bar

Re: [Pharo-users] STON encoding of slashes

2017-01-18 Thread Christophe Demarey
> Le 18 janv. 2017 à 09:51, Sven Van Caekenberghe a écrit : > > Hi Christophe, > >> On 18 Jan 2017, at 09:30, Christophe Demarey >> wrote: >> >> Hi, >> >> I just noticed that STON encoding of forward slashes changed. >> >> STON toString: 'g...@github.com:foo/bar.git’ => >> ''g...@github.c

Re: [Pharo-users] STON encoding of slashes

2017-01-18 Thread Sven Van Caekenberghe
Hi Christophe, > On 18 Jan 2017, at 09:30, Christophe Demarey > wrote: > > Hi, > > I just noticed that STON encoding of forward slashes changed. > > STON toString: 'g...@github.com:foo/bar.git’ => > ''g...@github.com:foo\/bar.git’' > > It used to be ''g...@github.com:foo/bar.git’’. > > Is

[Pharo-users] STON encoding of slashes

2017-01-18 Thread Christophe Demarey
Hi, I just noticed that STON encoding of forward slashes changed. STON toString: 'g...@github.com:foo/bar.git’ => ''g...@github.com:foo\/bar.git’' It used to be ''g...@github.com:foo/bar.git’’. Is it on purpose? Thanks, Christophe