The goog.json.EvalJsonProcessor Class

goog.json.EvalJsonProcessor(opt_replacer, opt_useUnsafeParsing)

A class that parses and stringifies JSON using eval (as implemented in goog.json). Adapts {@code goog.json} to the {@code goog.json.Processor} interface.

opt_replacer {?goog.json.Replacer=}
An optional replacer to use during serialization.
opt_useUnsafeParsing {?boolean=}
Whether to use goog.json.unsafeParse for parsing. Safe parsing is very slow on large strings. On the other hand, unsafe parsing uses eval() without checking whether the string is valid, so it should only be used if you trust the source of the string.

.parse()

.stringify()