Skip to content

Add option to strip undefined values off object as JSON does #106

@willium

Description

@willium

In JSON, undefined values stripped off the object

> JSON.parse(JSON.stringify({a: undefined}))
{}
> JSON.parse(JSON.stringify({a: undefined})).a
undefined

and undefined values in arrays are converted to null

It would be great if there were some option that removed undefined props at encode time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions