如何解析这种类型的JSON字符串数据

时间:2017-04-10 06:39:41

标签: php jquery arrays json

Object {percentage: Array(9), projects: Array(9), colors: Array(9)}
colors:Array(9)
  0:"#4d4d4d"
  1:"#5da5da"
  2:"#faa43a"
  3:"#60bd68"
  4:"#307d99"
  5:"#0275d8"
  6:"#cc4748"
  7:"#fdd400"
  8:"#f15854"
length:9
__proto__:Array(0)
percentage:Array(9)
  0:3
  1:6
  2:13
  3:12
  4:0
  5:47
  6:14
  7:4
  8:1
length:9
__proto__:Array(0)
projects:Array(9)
  0:"BHAWAN"
  1:"CORE"
  2:"DIST-NIC"
  3:"DIST-NKN"
  4:"FIREWALL"
  5:"NKN"
  6:"NMEICT"
  7:"PRAGATI"
  8:"WIFI"
length:9
__proto__:Array(0)
__proto__:Object

1 个答案:

答案 0 :(得分:0)

至于我,它不是JSON,而是对象的Platform/输出:

console

对我而言,这似乎已经是一个JSON对象了。那么你的问题是什么?