Bug in JSON parsing
Posted: 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.
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.