JSON Filter
Description
Allows you to convert a JavaScript object into a JSON string.
This filter is mostly useful for debugging. When using the double curly
{{value}} notation, the binding is automatically converted to JSON.
Parameters
- object
{*}: Any JavaScript object (including arrays and primitive types) to filter. - spacing
{number=}: The number of spaces to use per indentation, defaults to 2.
Returns
{string}: JSON string.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.