Files | Classes | Functions

Files

file  strings/json.hpp
 

Classes

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

Functions

std::unique_ptr< cudf::columncudf::strings::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::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()

std::unique_ptr<cudf::column> cudf::strings::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::mr::device_memory_resource mr = rmm::mr::get_current_device_resource() 
)

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: $ . [] *

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
mrResource for allocating device memory.
Returns
New strings column containing the retrieved json object strings
Exceptions
std::invalid_argumentif provided an invalid operator or an empty name