denoland / denoland/std

jsonc serialization support

Open
#6,865 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**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

```ts
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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.