Settings for get_json_object().
More...
#include <cudf/json/json.hpp>
Settings for get_json_object().
Definition at line 24 of file json.hpp.
◆ get_allow_single_quotes()
| CUDF_HOST_DEVICE bool cudf::get_json_object_options::get_allow_single_quotes |
( |
| ) |
const |
|
inline |
Returns true/false depending on whether single-quotes for representing strings are allowed.
- Returns
- true if single-quotes are allowed, false otherwise.
Definition at line 46 of file json.hpp.
◆ get_missing_fields_as_nulls()
| CUDF_HOST_DEVICE bool cudf::get_json_object_options::get_missing_fields_as_nulls |
( |
| ) |
const |
|
inline |
Whether a field not contained by an object is to be interpreted as null.
When set to true, if an object is queried for a field it does not contain, a null is returned.
With missing_fields_as_nulls OFF:
Input = {"a" : [{"x": "1", "y": "2"}, {"x": "3"}]}
Query = $.a[*].y
Output = ["2"]
With missing_fields_as_nulls ON:
Input = {"a" : [{"x": "1", "y": "2"}, {"x": "3"}]}
Query = $.a[*].y
Output = ["2", null]
- Returns
- true if missing fields are interpreted as null.
Definition at line 101 of file json.hpp.
◆ get_strip_quotes_from_single_strings()
| CUDF_HOST_DEVICE bool cudf::get_json_object_options::get_strip_quotes_from_single_strings |
( |
| ) |
const |
|
inline |
Returns true/false depending on whether individually returned string values have their quotes stripped.
When set to true, if the return value for a given row is an individual string (not an object, or an array of strings), strip the quotes from the string and return only the contents of the string itself. Example:
With strip_quotes_from_single_strings OFF:
Input = {"a" : "b"}
Query = $.a
Output = "b"
With strip_quotes_from_single_strings ON:
Input = {"a" : "b"}
Query = $.a
Output = b
- Returns
- true if individually returned string values have their quotes stripped.
Definition at line 75 of file json.hpp.
◆ set_allow_single_quotes()
| void cudf::get_json_object_options::set_allow_single_quotes |
( |
bool |
_allow_single_quotes | ) |
|
|
inline |
Set whether single-quotes for strings are allowed.
- Parameters
-
| _allow_single_quotes | bool indicating desired behavior. |
Definition at line 111 of file json.hpp.
◆ set_missing_fields_as_nulls()
| void cudf::get_json_object_options::set_missing_fields_as_nulls |
( |
bool |
_missing_fields_as_nulls | ) |
|
|
inline |
Set whether missing fields are interpreted as null.
- Parameters
-
| _missing_fields_as_nulls | bool indicating desired behavior. |
Definition at line 131 of file json.hpp.
◆ set_strip_quotes_from_single_strings()
| void cudf::get_json_object_options::set_strip_quotes_from_single_strings |
( |
bool |
_strip_quotes_from_single_strings | ) |
|
|
inline |
Set whether individually returned string values have their quotes stripped.
- Parameters
-
| _strip_quotes_from_single_strings | bool indicating desired behavior. |
Definition at line 121 of file json.hpp.
The documentation for this class was generated from the following file: