Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

In FIODataPoint, fields that are Strings are enclosed by double quotes. #25

Open
BoD opened this issue Jul 16, 2016 · 2 comments
Open

Comments

@BoD
Copy link

BoD commented Jul 16, 2016

For instance, dataPoint.icon() will not return partly-cloudy-day but "partly-cloudy-day".

This is because of the way the void update(JsonObject dp) method is coded.
This takes all the fields in the Json object and puts it in a map, like this: datapoint.put(dp.names().get(i), dp.get(dp.names().get(i))).

The problem is dp.get() returns JsonNumber, JsonString, etc. depending on the type of the field, and JsonString.toString() returns the value as Json code. And the Json representation of a String is its value enclosed by double quotes :)

@dvdme
Copy link
Owner

dvdme commented Dec 29, 2016

My last commit in the dev branch addresses that issue

@natefoundry
Copy link

natefoundry commented Feb 6, 2018

Which release will this be in?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants