在线转换json与php数组
www.jsonaz.com
例如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访问。
鸣谢
时间: 2024-09-30 18:35:44