实现JSON
类型
支持的值数据类型:
- null
- boolean
- number
- array
- object
复杂
#
实现JSON.parse()简介版:
参考语法分析:
#
实现JSON.stringify()不考虑第二第三个参数
代码: https://gitee.com/daaasheng/whiteboard_code/tree/master/JSON
参考: https://juejin.im/post/6844903992871354375 stringify几大特征 https://segmentfault.com/a/1190000021230185 语法分析角度实现parse https://lihautan.com/json-parser-with-javascript/ https://juejin.im/post/6844904066217148424 http://www.jecyu.com/2020/02/21/%E8%AF%91%E6%96%87%E4%BD%BF%E7%94%A8javascript-%E6%89%8B%E5%86%99-json-parser/#_parser