https://zhuanlan.zhihu.com/p/22457315 https://github.com/miloyip/json-tutorial 从零开始写一个 JSON 库,其特性如下:
输入 JSON 字符串,对象或数组相互嵌套着,如: { “firstName”: “John”, “lastName”: “Smith”, “age”: 25, “address”: { “streetAddress”: “21 2nd Street”, “city”: “New York”, “state”: “NY”, “postalCode”: 10021 }, “phoneNumbers”: [ { “type”: “home”, “number”: “212 555-1234” }, { “type”: “fax”, “number”: “646 555-4567” } ] }
https://blog.csdn.net/qq_35688140/article/details/89600106 1、UDF:用户定义(普通)函数,只对单行数值产生作用; 继承UDF类,添加方法 evaluate()