RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • StreamSQL
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • StreamSQL
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

  • StreamSQL

    • Overview
    • Quick Start
    • Core Concepts
    • SQL Reference
    • API Reference
    • RuleGo Integration
    • functions

      • Aggregate Functions
      • Analytical Functions
      • Window Functions
      • Math Functions
      • String Functions
      • Conversion Functions
      • DateTime Functions
      • JSON Functions
        • TO_JSON - Convert to JSON Function
        • FROM_JSON - Parse from JSON Function
        • JSON_EXTRACT - JSON Extract Function
        • JSON_VALID - JSON Validation Function
        • JSON_TYPE - JSON Type Function
        • JSON_LENGTH - JSON Length Function
        • 📚 Related Documentation
      • Hash Functions
      • Array Functions
      • Type Check Functions
      • Conditional Functions
      • Multi-row Functions
      • Expression Functions
      • Custom Functions
    • case-studies

目录

JSON Functions

# StreamSQL JSON Functions

JSON functions are used for handling JSON data.

# TO_JSON - Convert to JSON Function

Syntax: to_json(value)
Description: Converts a value to a JSON string.

# FROM_JSON - Parse from JSON Function

Syntax: from_json(json_str)
Description: Parses a value from a JSON string.

# JSON_EXTRACT - JSON Extract Function

Syntax: json_extract(json_str, path)
Description: Extracts a value at the specified path from a JSON string.

# JSON_VALID - JSON Validation Function

Syntax: json_valid(json_str)
Description: Validates whether a string is valid JSON.

# JSON_TYPE - JSON Type Function

Syntax: json_type(json_str)
Description: Returns the type of a JSON value.

# JSON_LENGTH - JSON Length Function

Syntax: json_length(json_str)
Description: Returns the length of a JSON array or object.

# 📚 Related Documentation

  • DateTime Functions - Learn detailed usage of datetime functions
  • Hash Functions - Learn detailed usage of hash functions
  • SQL Reference - View complete SQL syntax reference
Edit this page on GitHub (opens new window)
Last Updated: 2025/08/05, 02:24:31
DateTime Functions
Hash Functions

← DateTime Functions Hash Functions→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式