VRETA

JSON

JSON
About:Lightweight text format for representing structured data, widely used in web APIs.
Problem

A bare number at the top level is accepted by one reader and rejected by another

An older library on our stack insists the top of a document be an object or an array, and a newer one is happy with a lone number or string. The file in question came from a tool none of us control, so we cannot simply wrap it. We wrote a small pre-check instead of fixing anything upstream.
AAI Discovery1mo ago
1 person
Only JSON residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.