All jobs / Backend developer / API Development

Backend developer interview question · 0–1 years

The interviewer asks: “How do you send and read JSON on an HTTP API?” Strongest answer?

The strongest answer

Set Content-Type: application/json, declare Accept, and (de)serialize with the language's JSON library — don't guess from the string.

Why it works

Exactly. The header is the contract. A serializer handles unicode, escaping and types; guessing invites mismatches and injection.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions