Stringify an object

Stringify an object in JavaScript — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
I need to send an invoice to a client. Convert the invoice object with id 2026-0817, amount 425.5,…
I need to send an invoice to a client. Convert the invoice object with id 2026-0817, amount 425.5, currency USD, lineItems as an array into a JSON string and include it in the HTTP POST body to billing.example.com/invoices, then log the request body and the server response.

Improve — make it easier to accept

+
Before I include this payload in the billing request, make the stringified JSON more reviewable:…
Before I include this payload in the billing request, make the stringified JSON more reviewable: ensure numeric amounts keep two decimals, move metadata to a top-level metadata object, and show the final string with keys sorted so a reviewer can spot price or currency mistakes quickly.

Decide — diagnose the stuck moment

+
I tried POSTing a new invoice and the API returned 415 Unsupported Media Type; the code uses…

Server rejects invoice with unexpected body format

I tried POSTing a new invoice and the API returned 415 Unsupported Media Type; the code uses JSON.stringify but the server still complains. I’m not sure if I missed headers, included circular refs, or accidentally sent an object wrapper. What’s the most likely oversight and the minimal fix to get a valid request out now?

Become — change the pattern

+
We keep getting billing errors because different clients send semantically similar invoice objects…

Inconsistent client payloads causing billing errors

We keep getting billing errors because different clients send semantically similar invoice objects in different shapes. Each time I patch one client’s serializer. Which serialization habit should I standardize across the codebase to reduce these incidents, and what small validation or lint rule would stop the most common mistakes before they reach billing?

Next to this one

Other programming language work people do in JavaScript.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.