ak._v2.operations.io.ak_from_json_file.from_json_file

Defined in awkward._v2.operations.io.ak_from_json_file on line 27.

ak._v2.operations.io.ak_from_json_file.from_json_file(source, nan_string=None, infinity_string=None, minus_infinity_string=None, complex_record_fields=None, highlevel=False, behavior=None, buffersize=65536)
Parameters
  • source (str) – A filename with a JSON-formatted content to convert into an array.

  • 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.

  • buffersize (int) – Size (in bytes) of the buffer used by the JSON parser.

Converts content of a JSON file into an Awkward Array.

See also ak.from_json_schema and ak.to_json.