Problem when calling toJSON()

2016-01-31 Thread Alex Herrmann via Digitalmars-d-learn
Hello all, I'm having a *really* weird problem (at least I think so). I have a function on a struct that converts it into JSON. Everything works, no big deal. But when I try to turn that JSONValue into a string, I get a UTF-8 Error. What makes it even weirder, is that if I call toJSON before

Re: Problem when calling toJSON()

2016-01-31 Thread Ali Çehreli via Digitalmars-d-learn
On 01/31/2016 02:52 PM, Alex Herrmann wrote: > Note that I am running 2.070.0. Then it's probably a bug related to this change: http://dlang.org/changelog/2.070.0.html#json-encode-control-characters Ali

Re: Problem when calling toJSON()

2016-01-31 Thread Alex Herrmann via Digitalmars-d-learn
On Monday, 1 February 2016 at 00:24:06 UTC, Ali Çehreli wrote: On 01/31/2016 02:52 PM, Alex Herrmann wrote: > Note that I am running 2.070.0. Then it's probably a bug related to this change: http://dlang.org/changelog/2.070.0.html#json-encode-control-characters Ali This problem is solve

Re: Problem when calling toJSON()

2016-01-31 Thread anonymous via Digitalmars-d-learn
On 01.02.2016 01:29, Alex Herrmann wrote: This problem is solved! Sorry for not updating the question. It was actually a problem with me not iduping it, and the memory being reclaimed or something similar. I did also change to stdx.data.json (std_data_json on dub). You don't seem to be clear o