3/31/2023 0 Comments Json formatter![]() The "Parsed" buttons represents what you'll get from JSON.parse. But I just want to see exactly what the server spits outįor now, your best option is to just use the "Raw" button to see the raw JSON. This V8 implementation detail has since become standardised. Historically, the JavaScript standard explicitly stated that object keys can be iterated in any order, and V8 took advantage of this by moving numeric string keys (like "1" or "99999") to the top to facilitate a small performance optimisation. It's the same order you'll get with Object.keys( JSON.parse(json) ) in JavaScript. What you see in JSON Formatter is a representation of the parsed object/array. Why are object keys sometimes in the wrong order? If your API endpoint really needs to represent numbers outside JavaScript's safe range, it should quote them as strings. JSON Formatter shows you the parsed values, exactly the same as what you'll see after loading the JSON in JavaScript. It's not JSON Formatter doing this, it's the native JSON.parse in V8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |