ak._v2.ak_from_json.from_json

Defined in awkward._v2.operations.convert.ak_from_json on line 9.

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)
Parameters
  • 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 ak.layout.Content subclass.

  • behavior (None or dict) – Custom ak.behavior for the output array, if high-level.

Converts a JSON string into an Awkward Array.

See also ak.from_json_schema and ak.to_json.