Skip to content

Add an option so that strinfigy to JSON.stringify objects #86

@alexewerlof

Description

@alexewerlof

Current behavior

If the value is an object or array, [object Object] will be put into the template. This might not be very helpful for debugging (and sometimes this is exactly what you would want, which forces you to write a transformation).

Expected behavior

Add an option like stringifyObjectValues or equivalent in the stringify options and let it put a nicer presentation of objects in the output.

Out of scope

One may want to give special treatment to arrays or set the indentation as well but I'm not aware of any strong use case so let's not add that now.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions