Please fill out these questions for all feature requests and bug reports. If you're requesting a feature, please let us know why this feature is important or useful, not just what it should do.
Thanks!
- What browsers show this problem? Chrome Version 80.0.3987.149 (Official Build) (64-bit)
- Please share an example project (if possible). Below
- Describes the steps to reproduce this issue. Paste included text into SPLIT block
- What does Snap! currently do? Field content dropped
- What should Snap! do instead? Not drop it.
As I was importing some JSON data, I noticed that decimal values with more than 2 digits of decimal parts were being dropped.
I have changed the data format to bracket the field by double-quotes to ensure data transfer.
It still dropped the decimal portions of the time field, even though it should be considered string data.
Here is the JSON data to paste into SPLIT by JSON block:
{ "1 " : { "time" : 1501153022.1045, "adc" : 664, "volts" : 2.14, "bars" : 6.48}}
{ "1 " : { "time" : "1501153022.1045", "adc" : 664, "volts" : 2.14, "bars" : 6.48}}
NOTE:
It has no problems with 2 position decimal data as seen in volts and bars fields.
JSON specs indicate 'multi-digit' + '.' + 'multi-digit' sequences are valid.