> For the complete documentation index, see [llms.txt](https://ret2basic.gitbook.io/ctfnote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ret2basic.gitbook.io/ctfnote/computer-science/python/built-in-functions-and-standard-library/import-json.md).

# import json

Serialization and Deserialization

```python
import json

hackers = {
	'neut' : 1,
	'geohot' : 100,
	'neo' : 1000,
}

serialized = json.dumps(hackers)
print(f"{serialized = }")

deserialized = json.loads(serialized)
print(f"{deserialized = }")
```

Output:

![json](https://3988450783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWVjG_njKgBtvmnKaJh%2Fuploads%2F2gSBUH5eglcCSPeNoSa4%2Fimage.png?alt=media\&token=87ab540c-a166-4926-8c68-545b8eb8a3c8)
