libcudf  23.12.00
Files | Classes | Functions
JSON Path

Files

file  json/json.hpp
 

Classes

class  cudf::get_json_object_options
 Settings for get_json_object(). More...
 

Functions

std::unique_ptr< cudf::columncudf::get_json_object (cudf::strings_column_view const &col, cudf::string_scalar const &json_path, get_json_object_options options=get_json_object_options{}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Apply a JSONPath string to all rows in an input strings column. More...
 

Detailed Description

Function Documentation

◆ get_json_object()

Apply a JSONPath string to all rows in an input strings column.

Applies a JSONPath string to an incoming strings column where each row in the column is a valid json string. The output is returned by row as a strings column.

https://tools.ietf.org/id/draft-goessner-dispatch-jsonpath-00.html Implements only the operators: $ . [] *

Exceptions
std::invalid_argumentif provided an invalid operator or an empty name
Parameters
colThe input strings column. Each row must contain a valid json string
json_pathThe JSONPath string to be applied to each row
optionsOptions for controlling the behavior of the function
streamCUDA stream used for device memory operations and kernel launches
mrResource for allocating device memory
Returns
New strings column containing the retrieved json object strings