> On 28 Feb 2019, at 22:35, Tim Mackinnon <tim@testit.works> wrote: > > Sven- thinking a bit more > >> On 28 Feb 2019, at 13:59, Sven Van Caekenberghe <s...@stfx.eu> wrote: >> >> This is wrong !! >> >> Think about it, what would then happen with a mixed list ? >> >> { #key->#value. 1. true } >> >> That would generate invalid JSON. > > > I actually went and tried my little hack with your example and it gives the > same error as STONWriter - so actually my proposal isn’t so horrid as > inferred… (but still not as knowledgable as everyone else on this for sure). Forget about the way you are trying to implement it, to what would { #key->#value. 1. true } be rendered in JSON ? { "key":"value", 1, true } or [ "key":"value", 1, true ] Both are illegal JSON.
- [Pharo-users] How to write out simple Json? Tim Mackinnon
- Re: [Pharo-users] How to write out simple Json... Sven Van Caekenberghe
- Re: [Pharo-users] How to write out simple ... Tim Mackinnon
- Re: [Pharo-users] How to write out sim... Tim Mackinnon
- Re: [Pharo-users] How to write out... Tim Mackinnon
- Re: [Pharo-users] How to writ... Sven Van Caekenberghe
- Re: [Pharo-users] How to ... Tim Mackinnon
- Re: [Pharo-users] How... Sven Van Caekenberghe
- Re: [Pharo-users] How... Tim Mackinnon
- Re: [Pharo-users] How... Sven Van Caekenberghe
- Re: [Pharo-users] How... Esteban Maringolo
- Re: [Pharo-users] How... Paul DeBruicker
- Re: [Pharo-users] How... Sven Van Caekenberghe
- Re: [Pharo-users] How to writ... Richard O'Keefe
- Re: [Pharo-users] How to write out... Sven Van Caekenberghe
- Re: [Pharo-users] How to write out... Henrik Sperre Johansen
- Re: [Pharo-users] How to write out... Jimmie Houchin
- Re: [Pharo-users] How to writ... Sven Van Caekenberghe