Bug in JSON parsing

Post your questions and help other users.

Moderator: Martin

Post Reply
mathieson
Posts: 51
Joined: 13 Aug 2013 18:16

Bug in JSON parsing

Post by mathieson » 21 Feb 2017 15:26

Martin,

Hello,

When converting a long decimal number from JSON to a number there is an error stating "cannot convert value to number". I can imagine this is because of the number of decimal places in the JSON perhaps? Some sort of rounding system could help with this? Or simply cut the last few when the decimal places are too long.

Simply run the flow to see the error, it will get your lat/long, and use google maps to get the elevation. It is the elevation value which is too long I imagine.

I am attaching a flow in this post that shows the bug. It is in the block that uses fromJSON.

Regards,
Sam.
Attachments
flow_Send_Location_20170221_071411.xml
(8.18 KiB) Downloaded 719 times

mathieson
Posts: 51
Joined: 13 Aug 2013 18:16

Re: Bug in JSON parsing

Post by mathieson » 22 Feb 2017 02:54

SORRY!

Please disregard. My mistake! Not a bug!

Post Reply