← All Modules

Methods

json

prettify

prettify(value, indent)

Parameters:

  • value
  • indent

Converts a value to JSON string. When the passed value is not a string, returns the value.