json_load_particle¶
-
plasmapy.particles.serialization.
json_load_particle
(fp, *, cls=<class 'plasmapy.particles.serialization.ParticleJSONDecoder'>, **kwargs)¶ A convenient form of
json.load
to deserialize a JSON document into a PlasmaPy 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
.