APPEND_ELEMENT function

APPEND_ELEMENT function

Function Name Description Usage Input parameter Return value
APPEND_ELEMENT Appends an element to a JSON array. APPEND_ELEMENT(value) Value to append. JSON array with the appended element.

Supported data type

The APPEND_ELEMENT function supports the following data type:

  • JSON

Example: Append an element to a JSON array

Sample data: $var1$ = ["first", "second", "third", "fourth"]

Usage: $var1$.APPEND_ELEMENT("fifth")

Append element fifth to var1.

Output: ["first", "second", "third", "fourth", "fifth"].

Recommendation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月24日 UTC.