Back
Close

Computing with Data

elgeish
106.3K views
Previous: Debugging Next: Pickling

JSON Serialization

Note that JSON is very similar to legitimate Python code, making Python particularly easy for interacting with Python code:

import json
# creating a Python object (map) holding a person's address
personRecord = {
"firstName": "Jane",
"lastName": "Doe",
"yearOfBirth": 1975,
"address": {
"streetAddress": "100 Main Street",
"city": "Los Angeles",
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants