navis.read_json¶
- navis.read_json(s, **kwargs)[source]¶
Load neuron from JSON (file or string).
- Parameters:
s (str) – Either filepath or JSON-formatted string.
**kwargs – Parameters passed to
json.loads()
andpandas.DataFrame.read_json()
.
- Return type:
See also
neuron2json()
Turn neuron into json.
Examples
>>> import navis >>> n = navis.example_neurons(1) >>> js = navis.write_json(n, filepath=None) >>> n2 = navis.read_json(js)