json_load_particle
- plasmapy.particles.serialization.json_load_particle(fp, *, cls=<class 'plasmapy.particles.serialization.ParticleJSONDecoder'>, **kwargs)[source]
Deserialize a JSON document into the appropriate particle object.
This function is a convenient form of
json.load
to deserialize a JSON document into a particle object. (Mirrorsjson.load
withcls
defaulting toParticleJSONDecoder
.).- Parameters:
fp (file object) – A file object containing a JSON document.
cls (
json.JSONDecoder
class) – AJSONDecoder
class. (DefaultParticleJSONDecoder
).**kwargs – Any keyword accepted by
json.load
.