- ak._v2.ak_from_json.from_json(source, nan_string=None, infinity_string=None, minus_infinity_string=None, complex_record_fields=None, highlevel=True, behavior=None)¶
source (str) – JSON-formatted string to convert into an array. The string must comply with ‘ndjson’ specification: please, see https://github.com/ndjson/ndjson-spec for more details.
nan_string (None or str) – If not None, strings with this value will be interpreted as floating-point NaN values.
infinity_string (None or str) – If not None, strings with this value will be interpreted as floating-point positive infinity values.
minus_infinity_string (None or str) – If not None, strings with this value will be interpreted as floating-point negative infinity values.
complex_record_fields (None or (str, str)) – If not None, defines a pair of field names to interpret records as complex numbers.
highlevel (bool) – If True, return an
ak.Array; otherwise, return a low-level
behavior (None or dict) – Custom
ak.behaviorfor the output array, if high-level.
Converts a JSON string into an Awkward Array.