Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.
This repository was 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

@BoD

Description

@BoD

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions