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)
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;
T