On Tuesday, 19 April 2016 at 13:58:05 UTC, Edwin van Leeuwen wrote:
On Tuesday, 19 April 2016 at 13:44:08 UTC, Andre wrote:
-> I need to analyze every value whether it is a floating or an integer?

This is the correct option. Something like:

double f;
if (j["value"].type == JSON_TYPE.INTEGER)
  f = j["value"].integer.to!float;
else
  f = j["value"].floating;

There are also a number of libraries available that make dealing with json a bit easier:
code.dlang.org/search?q=json

I will do so. Thanks.

Kind regards
André

Reply via email to