> On 18 Jan 2017, at 16:38, Sven Van Caekenberghe <s...@stfx.eu> 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: STON-Core-SvenVanCaekenberghe.81 Author: SvenVanCaekenberghe Time: 31 January 2017, 11:43:15.520367 pm UUID: d83172d8-f01e-4e63-9382-515399ffa7bc Ancestors: STON-Core-SvenVanCaekenberghe.80 Change the encoding of characters while writing so that in default STON mode only the following named character escapes are used: \b \t \n \f \' and \\ while in JSON mode \' is replaced by \" - this means that / is normally not escaped. Add STONWriter>>#escape:with: as API Adjust 2 unit tests to reflect this change Update time tag of STONWriter class>>#initialize === Name: STON-Tests-SvenVanCaekenberghe.71 Author: SvenVanCaekenberghe Time: 31 January 2017, 11:43:43.88292 pm UUID: 65045513-6f48-43b7-a112-89dabf34a8f8 Ancestors: STON-Tests-SvenVanCaekenberghe.70 Change the encoding of characters while writing so that in default STON mode only the following named character escapes are used: \b \t \n \f \' and \\ while in JSON mode \' is replaced by \" - this means that / is normally not escaped. Add STONWriter>>#escape:with: as API Adjust 2 unit tests to reflect this change Update time tag of STONWriter class>>#initialize === Sven