std.json: SkipWhitespace = false ?

Peter Sommerfeld noreply at rubrica.at
Wed Sep 19 13:07:27 PDT 2012


Hi Everyone!

I'm new to :D and have a small problem with std.json.

If I use parseJSON() or toJSON() all whitespaces are
removed. I would like it to have them preserved for
better readability for users.

In std.json.d various functions contain SkipWhitespace
as parameter but that is not propagated to the toplevel
functions.

Are there any strong reasons for this behavior or can
I rebuild it with SkipWhitespace = true? Or is there
another way to work around it.

Peter


More information about the Digitalmars-d-learn mailing list