Login
Remember
Register
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
About us
Ask a Question
Correctly fulfills the function of JSON.stringify. Why?
+1
vote
asked
Feb 27, 2020
by
razumovsu
There is a data structure in js:
When you run JSON.stringify instead of a normal json representation of the data structure we get something like "[]"
https://monosnap.com/file/wteGoV9miG4jnuanbhfjQ1jp...
Почему так происходит?
javascript
json
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 27, 2020
by
0xD34F
Best answer
Everything is working correctly. Properties whose names are not integers greater than or equal to zero, are discarded. You have the same array. Use the object.
Please
log in
or
register
to add a comment.
Related questions
How to specify the output format of numbers with plavusa point in the JSON.stringify?
Why is JSON.stringify loses part of the object?
JSON.Stringify() for the inherited objects and properties?
JSON.stringify adds a non-existent array elements?
Why is JSON.stringify produces invalid JSON if it has quotation marks? How to fix?
Most popular tags
javascript
php
html
css
python
wordpress
jquery
web development
linux
mysql
android
windows
java
node.js
c#
network
cpp
layout
react
ubuntu
...