Is the JSON object global in Node.js?

守給你的承諾、 提交于 2019-12-14 03:43:12

问题


I can't seem to find the documentation on JSON.parse(...) for Node.js. I just see it littered around various scripts. I was wondering, where does it come from - are there certain callbacks that make it available or is it a global object?

Thanks! Matt Mueller


回答1:


It's built into V8.

Here's a link to their implementation: http://code.google.com/p/v8/source/browse/trunk/src/json.js



来源:https://stackoverflow.com/questions/4857072/is-the-json-object-global-in-node-js

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!