Skip to content

jsonc serialization support #6865

@scarf005

Description

@scarf005

Is your feature request related to a problem? Please describe.

Currently, this module only provides a means of parsing JSONC. JSONC serialization is not yet supported.

i'd like to be able to serialize object into JSONC with comments such as

const foo = { a: 1, b: 2 }

JSONC.stringify(foo)
//=> `{ 
//     "a":1,
//     "b":2,
//    }`

Describe the solution you'd like

add stringify to @std/jsonc

Describe alternatives you've considered

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