Skip to content

Unit handling in [email protected] #419

@fhagemann

Description

@fhagemann

Hi,
the unit handling (using units with Unitful) seems to be broken in [email protected] and fixed in JSON@1.

using Unitful, JSON
JSON.parse(JSON.json(1u"m"))

will result in

# [email protected]
Dict{String, Any} with 1 entry:
  "val" => 1

# JSON@1
"1.0 m"

so [email protected] does not even remember the unit and parses it as dictionary..

Is there any way to fix the unit handling and make a release 0.21.5 with it? Or is pre-1 development discontinued?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions