开发者

Where can I find JS JSON info on raw JSON manipulation?

I can do it via jQuery and/开发者_运维百科or Underscore JS as arrays of data, but I want to learn the API for just pure RAW JSON. For example, I know there is:

delete json.item

Which just simply deletes the item, but is there a set place I can go learn the full API?

--UPDATE--

I guess this came out wrong. I want to learn about Douglas Crockfords library, all of it. The JSON.func() library, not just "JSON" which is a string. For example he has a function called stringify etc. His site is a total mess, so I was wondering if there was a better place to learn about that JSON library (which has become the standard.)


There is no such thing. Raw JSON is a string, and attempting to manipulate it will only serve to damage it. Always manipulate it after decoding it.


delete will modify the property of an object, it won't let you manipulate JSON (unless that JSON is stored as the property of an object, in which case it will delete it entirely).

You appear to be asking about how to modify a JavaScript object, in which case, the "API" can be found at https://developer.mozilla.org/en/JavaScript/Reference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜