标签:
例如json数据
{ "number" : 1, "tuple" : [1,2,3], "dict" : { "a": "apple", "b": "banana" }, "complex": { "person": { "name" : "alice", "gender": "female", "age": 19, "friends": [ "Adam","Bob","Candy" ], "religions":[] } } }
将被转换为php数组
array( "number" => 1, "tuple" => array( 0 => 1, 1 => 2, 2 => 3, ), "dict" => array( "a" => "apple", "b" => "banana", ), "complex" => array( "person" => array( "name" => "alice", "gender" => "female", "age" => 19, "friends" => array( 0 => "Adam", 1 => "Bob", 2 => "Candy", ), "religions" => array(), ), ), )
域名正在备案,目前只能通过IP访问。
在线转换JSON与PHP数组(json php array)
标签:
原文地址:http://www.cnblogs.com/limzz/p/4908562.html