Skip to content

JSON #15

Closed
Closed
JSON#15
@benjamingr

Description

@benjamingr

Hi, I've noticed you use .toJSON() to convert to JavaScript objects.

JSON is a data serialization format, converting it toJSON would have been to also call .stringify on it.

The objects produced by this call are also not always valid JSON or are even encodable/decodable as JSON.

I would recommend renaming .toJSON. I don't have any particularly good ideas on what to though.

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