Docs (4.0.0)
class Assertion method

asJSONString

Returns a new assertion for the JSON representation of the current value.

asJSONString(replacer?: (key: string, value: any) => any, space?: string): Assertion<unknown>

Summary

This method calls JSON.stringify() with the current value, and given arguments.

Parameters

  • replacer — The replacer passed to JSON.stringify, if any
  • space — Indentation string passed to JSON.stringify, if any

Related