Skip to content

Add to_json method #11

Description

@mociepka

It would be nice to have to_json method or to_dict or json serializer in prices.
Now I use:

price = {name: str(value) for name, value in obj._asdict().items()}
del price['history']

but this doesn't look good.

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