json_loads_particleο
- plasmapy.particles.serialization.json_loads_particle(
- s,
- *,
- cls=<class 'plasmapy.particles.serialization.ParticleJSONDecoder'>,
- **kwargs,
Deserialize a JSON string into the appropriate particle object.
This function is convenient form of
json.loadsto deserialize a JSON string into a particle object. (Mirrorsjson.loadswithclsdefaulting toParticleJSONDecoder.).- Parameters:
s (str) β A JSON string.
cls (
json.JSONDecoderclass) β AJSONDecoderclass. (DefaultParticleJSONDecoder).**kwargs β Any keyword accepted by
json.loads.