Skip to main content
This function analyzes and gets the integer value from a specified path in json string. Tip All of the JSON functions and operators are listed in the navigation and on the overview page Accelerate your queries with generated columns json_path must start with $ and use . as the path separator. If the path includes ., it could be circled by " and ". [ ] is used as the array subscripts which start from 0. Content in the path should not contain " , [ and ]. If the format of json_string or json_path is wrong, this function will return NULL.

Syntax

Examples

  1. Get the value whose key is “k1”
    Text
  2. Get the second element in the array whose key is “my.key”
    Text
  3. Get the first element in the array whose path is k1.key -> k2.
    Text

keyword

GET_JSON_INT,GET,JSON,INT