diff --git a/api/@ohos.util.json.d.ts b/api/@ohos.util.json.d.ts index 927eb0db21ddb0866502b95d979605409a0a0a9a..898e62116e047d7cc7d61f042718f571d2df46bf 100644 --- a/api/@ohos.util.json.d.ts +++ b/api/@ohos.util.json.d.ts @@ -65,9 +65,9 @@ declare namespace json { * Converts a JavaScript Object Notation (JSON) string into an Object or null. * * @param { string } text - A valid JSON string. - * @param { Type } type - A constructor or class representing the expected type of the parsed result. + * @param { Type } expectedtype - A constructor or class representing the expected type of the parsed result. * @param { Transformer } [reviver] - A function that transforms the results. - * @param {ParseOptions} options - The config of parse. + * @param {ParseOptions} [options] - The config of parse. * @returns { T | null | undefined } Return an Object, array, string, number, boolean, undefined, or null value corresponding to JSON text. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -75,7 +75,7 @@ declare namespace json { * @since 20 * @arkts 1.2 */ - function parse(text: string, type: Type, reviver?: Transformer, options?: ParseOptions): T | null | undefined; + function parse(text: string, expectedtype: Type, reviver?: Transformer, options?: ParseOptions): T | null | undefined; /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.