# Import json

Canonical URL: <https://datadriven.io/problems/import-json-convert-the-dictionary-name-bob-age-2-99fb99d3>

Domain: Python · Difficulty: medium

## Problem

Import json. Convert the dictionary {'name': 'Bob', 'age': 25} to a JSON string using json.dumps(). Then parse it back with json.loads(). Print the JSON string and the type of the parsed result.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/import-json-convert-the-dictionary-name-bob-age-2-99fb99d3)
- [Python Interview Questions](https://datadriven.io/python-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.