Wrong decimal place JSON parser

Avatar
  • updated

Hi,

I have been using JSON token from a website to get the windspeed for the day, and it have been working great. But from some of the latest server updates the decimal point is in the wrong place.

Like today the data is this:

"name":"ws","levelType":"hl","level":10,"unit":"m/s","values":[4.3]

But the value I get in bOS is 43.  It's like it's dropping the decimalpoint.

Avatar
Fabien Fuster

Did you try to change the Decimal Mark to DecimalComma ?

Had to do it on all my Double values despite the json value was coming in with a dot separator

Avatar
Fredrik Johansson

No, I have it on DecimalPoint as it always has been, but I can try and change it to DecimalComma and see if that works.

Avatar
Fredrik Johansson

That seems to work. 

They must have changed something, because it used to work until one off the updates that came last autumn/winter.

Avatar
Fabien Fuster

I've questioned some time ago if not a bug, since it doesn't make sense to me to have to select DecimalComma while having dot in the json answer. Didn't see an answser so far.

Anyway, happy to read it fixed your issue.