JSON Parsing

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.

  1. What browsers show this problem? Chrome Version 80.0.3987.149 (Official Build) (64-bit)
  2. Please share an example project (if possible). Below
  3. Describes the steps to reproduce this issue. Paste included text into SPLIT block
  4. What does Snap! currently do? Field content dropped
  5. 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}}

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.

Did you expand the B column to be certain that the decimal part was dropped?

OK, I feel totally STUPID !
No did not, and it was correct !

I thought the table view would display the field completely, but that is not the case.

Sorry (...move on, these are not the droids you are looking for )! :slight_smile: