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. (Mirrors json.load with cls defaulting to ParticleJSONDecoder.).

Parameters: