safeJSONStringify function

  1. @JS()
String safeJSONStringify(
  1. dynamic source
)

Provides a cross-browser and cross-platform way to safely stringify objects into JSON. This is particularly necessary for ReactNative, where circular JSON structures throw an exception.

Implementation

@JS()
external String safeJSONStringify(dynamic source);