json_load_particleο
- plasmapy.particles.serialization.json_load_particle(
- fp,
- *,
- cls=<class 'plasmapy.particles.serialization.ParticleJSONDecoder'>,
- **kwargs,
Deserialize a JSON document into the appropriate particle object.
This function is a convenient form of
json.loadto deserialize a JSON document into a particle object. (Mirrorsjson.loadwithclsdefaulting toParticleJSONDecoder.).- Parameters:
fp (file object) β A file object containing a JSON document.
cls (
json.JSONDecoderclass) β AJSONDecoderclass. (DefaultParticleJSONDecoder).**kwargs β Any keyword accepted by
json.load.