promptdojo_

Aliases, multi-imports, and the `np.` you'll see everywhere — step 8 of 9

Write the import and code so:

  1. dumps and loads are pulled directly out of json (from json import dumps, loads) — only import what you actually use.
  2. The script encodes the dict {"city": "boston"} to a JSON string with dumps, then decodes it back to a dict with loads, and prints the decoded city.

Expected output:

boston

full-screen editor opens — close anytime to keep reading.