TO_STRING function

TO_STRING function

Function Name Description Usage Input parameter Return value
TO_STRING Converts a number or a JSON to a string. TO_STRING() N/A A string.

Supported data type

The TO_STRING function supports the following data types:

  • Boolean
  • JSON

Example: Convert an integer to a string

Sample data: $var1$ = 235

Usage: $var1$.TO_STRING()

Convert var1 to a string.

Output: 235

Example: Convert a JSON to a string

Sample data:

$var1$ =
{
 "dbIntegers": [1.0, 2.0, 3.0, 4.0],
 "dbString": "test"
}

Usage: $var1$.TO_STRING()

Convert var1 to a string.

Output:

{
 "dbIntegers": [
 1,
 2,
 3,
 4
 ],
 "dbString": "test"
}
 

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年12月09日 UTC.