[JSON].remove( keyPath )

语法:[JSON].remove( keyPath )

返回:

说明:移除指定路径的键

示例:

Set jsonObj = toJson("{div:{'#text-1': 'is text!', 'span':'hooo!'}}")
jsonObj.remove "div.span"
Response.Write jsonObj.toString() ' 移除了span键,结果为:{"div" : {"#text-1" : "is text!"}}

 

posted @ 2018-11-18 23:01  1024记忆  阅读(1747)  评论(0编辑  收藏  举报