考虑这个作为我的JSON字符串:
{"Table" : [{"userid" : "11","name" : "KumarP","designation" : "Business Head",
"phone" : "9789234793","email" : "surfingkumar@gmail.com","role" : "Admin",
"empId" : "EI003","reportingto" : "KumarP"}]}
我想让我的字符串像这样:
{Table:[{ userid: "11", name: "KumarP", designation: "Business Head",
phone: "9789234793", email:"surfingkumar@gmail.com", role : "Admin",
empId : "EI003",reportingto : "KumarP"}]}
我这样做是为了与jlinq一起使用。
json_encode()
引用了 JSON 哈希键,后来 Google Charts https://developers.google.com/chart/interactive/docs/reference#dataparam 出现了c[qe] is not a function
错误。 - Marcos