static fromJson(val) {
    return SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(
        SafeScript.stringify_(val));
  }
Creates a SafeScript JSON representation from anything that could be passed
to JSON.stringify.
@param {*} val
@return {!SafeScript}
@deprecated Use `safevalues.valueAsScript` instead.