THE DEV BENCH
🧾 JSONmedium

3. Nested objects and arrays

Write a JSON object for a container with: • image — the string "nginx:1.27" • resources — a nested object with cpu ("500m") and memory ("256Mi") • ports — an array of the numbers 80 and 443

How to approach this

Real config is nested: objects inside objects, arrays of values. There's no depth limit — just keep the brackets balanced. Reach into structure by key (resources.cpu) or index (ports[0]).

config.json