【发布时间】:2014-03-06 10:13:37
【问题描述】:
我必须将表单数据转换为 JSON 格式。我正在努力实现这一目标:-
{"appConfiguration" : {
"configuration_name" = "AS400 Configuration",
"configuration_version" = "1.001",
"connection" : [ {
"ip_address" : [ “10.10.10.01”,
“10.10.10.02”,
“10.10.10.03”
// all saved IP Address.
]
"port" : "23"
"ssl" : "NO",
"device_name" : "Agicent Device",
"name" : "Puga",
"user" : "smart gladiator",
"password" : "sgl2013",
"barcode_enter" : "NO",]}}
这就是我的 JSON 的样子。我能够将数据存储在单维数组中;如何创建这样的结构?
"connection":["ohiuh","ghu","ip_address":["something","something","something"]]
【问题讨论】:
标签: php arrays json multidimensional-array