Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.expressions.json_string#

json_string(value) → pyflink.table.expression.Expression[source]#

Serializes a value into JSON.

This function returns a JSON string containing the serialized value. If the value is NULL, the function returns NULL.

Examples:

>>> json_string(null_of(DataTypes.INT())) # None

>>> json_string(1)               # '1'
>>> json_string(True)            # 'true'
>>> json_string("Hello, World!") # '"Hello, World!"'
>>> json_string([1, 2])          # '[1,2]'

New in version 1.12.0.

previous

pyflink.table.expressions.without_columns

next

pyflink.table.expressions.json_object

Show Source

Created using Sphinx 4.5.0.