Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51152][PYTHON][SQL][DOCS] Add usage examples for the get_json_…
…object function ### What changes were proposed in this pull request? The pr aims to add some usage examples for function `get_json_object`, including: `get_json_object('[{"a":"b"},{"a":"c"}]', '$[0].a')`,`get_json_object('[{"a":"b"},{"a":"c"}]', '$[*].a')`. ### Why are the changes needed? When `JSON` is an `array`, some users may not know how to retrieve its data through `get_json_object`. Let's add some usage examples. ### Does this PR introduce _any_ user-facing change? Yes, Spark end-users will learn how to use `get_json_object` to obtain JSON data of type array through examples. ### How was this patch tested? - Pass GA - Manually Test. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49875 from fusheng9399/add-json-example. Lead-authored-by: fusheng <fusheng9399@gmail.com> Co-authored-by: Ruifeng Zheng <ruifengz@foxmail.com> Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com> Signed-off-by: panbingkun <panbingkun@apache.org>
- Loading branch information