Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexewerlof opened this issue Aug 17, 2020 · 1 comment
Open

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

alexewerlof opened this issue Aug 17, 2020 · 1 comment

Comments

@alexewerlof
Copy link
Owner

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.

@alexewerlof
Copy link
Owner Author

alexewerlof commented Jul 27, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant