Die Versionshinweise sind auf Englisch geschrieben.
JSON conversion matches the standard, including circular data
JavaScript's built-in JSON conversion brought closer to the standard. Turning data that refers back to itself into JSON now reports a clear error the way every browser does, instead of running away until the page freezes. Choosing exactly which fields to include now follows the order you list them in and drops duplicates, as the standard describes. And controlling the indentation of the output with a wrapped number or piece of text now works, including any custom conversion that value defines. Code that was already correct is unchanged. The JavaScript language aspect moves 94 to 95; the overall platform score stays at 70.
Was sich geändert hat
3 Änderungen- JavaScript und JITConverting self-referential data reports a clear error. When an object or array refers back to itself, turning it into JSON now stops with a clear error the moment the loop is detected, exactly as the standard requires, instead of running on until the page freezes. This removes a way a page could hang.
- JavaScript und JITChoosing which fields to include respects order and duplicates. When you pass a list of field names to include in the JSON output, the result now follows the order of that list and ignores repeated names, as the standard describes, rather than falling back to the object's own order.
- DarstellungCustom indentation and value conversion are honored. Setting the indentation with a wrapped number or piece of text now works, and a value that defines its own conversion has that conversion run wherever it is used, so custom number and text types behave consistently.





