Skip to content

Convert to correct types in JSON convertors #2

Description

@marianhlavac

Currently, all fields in JSONs, except for the boolean fields, are strings. Numeric fields should be represented as numbers.

For example, this current output:

{
        "manufacturer": "3D Robotics",
        "name": "Aero",
        "uas_class": "none",
        "weight": "3000",
        "max_takeoff": "3000",
        "endurance": "40",
        "has_camera": null,
        "is_toy": null
    },

Should look like this:

{
        "manufacturer": "3D Robotics",
        "name": "Aero",
        "uas_class": "none",
        "weight": 3000,
        "max_takeoff": 3000,
        "endurance": 40,
        "has_camera": null,
        "is_toy": null
    },

If there is a numeric value missing, it should be null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions