diff --git a/api/@ohos.buffer.d.ts b/api/@ohos.buffer.d.ts index 5052e2092986a0c1f157fb04036fe7f3b758b45d..562ee536c6aa6f6b12289081184a45886dc5df97 100644 --- a/api/@ohos.buffer.d.ts +++ b/api/@ohos.buffer.d.ts @@ -2390,6 +2390,18 @@ declare namespace buffer { */ toJSON(): Object; + /** + * Converts this Buffer instance into a JsonElement. + * + * @returns { jsonx.JsonElement } A new JsonElement containing the Buffer + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + toJSON(): jsonx.JsonElement; + /** * Decodes buf to a string according to the specified character encoding in encoding *