编程语言/Json/长度

来自康健生活
(重定向自Json/长度)
var json_obj = {
  "a": 1,
  "b":2
}
Object.keys(json_obj).length