json_loads_particle¶
-
plasmapy.particles.
json_loads_particle
(s, *, cls=<class 'plasmapy.particles.serialization.ParticleJSONDecoder'>, **kwargs)¶ A convenient form of
json.loads
to deserialize a JSON string into a PlasmaPy particle object. (Mirrorsjson.loads
withcls
defaulting toParticleJSONDecoder
.).- Parameters
s (str) – A JSON string.
cls (
json.JSONDecoder
class) – AJSONDecoder
class. (DefaultParticleJSONDecoder
).**kwargs – Any keyword accepted by
json.loads
.