Description |
|
Syntax | JSON_FIELD( |
Output | text |
Variables
json
: The JSON object.json_path
: The path to the specific field in the JSON object.
Example
JSON_FIELD(`Company Details`, "$.company_name")
Company Details | JSON_FIELD |
{"company_id": 1, "company_name": "ABC Inc.", "revenue": 500000, "location": "New York"} | ABC Inc. |
{"company_id": 2, "company_name": "XYZ Corporation", "revenue": 750000, "location": "San Francisco"} | XYZ Corporation |
{"company_id": 3, "company_name": "LMN Enterprises", "revenue": 300000, "location": "Chicago"} | LMN Enterprises |