开发者

Writing a valid multi-dimensional array into JSON

I'm trying to return a JSON string from an AJAX call to my database but I'm having a bit of trouble... I can't seem to get the notation of my JSON correct as it keeps evaluating to a sin开发者_如何学Gogle dimension array and chopping off a bunch...

Here's an example of what I have so far (truncated for brevity's sake):

[{
    "Credit",
    "Accounting, see also Business",
    "BA 051",
    "4",
    "Accounting Procedures 1"
  },
  {
    "Credit",
    "Accounting, see also Business",
    "BA 052",
    "4",
    "Accounting Procedures 2"
  }...
]


[ [1,2,3], [4,5,6], [7,8,9]]

[ is array which requires values.

{ is associative array or object which requires "name":value pairs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜