我想反序列化一个具有未知和不同领域的JSON文件,我该怎么做?
{
"general": [
{
"enabled": "yes",
"port": "5038",
"bindaddr": "0.0.0.0",
"displayconnects": "no"
}
],
"admin": [
{
"secret": "admin",
"deny": "0.0.0.0/0.0.0.0",
"permit": "0.0.0.0/0.0.0.0",
"read": "system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate",
"write": "system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate"
}
],
"phpconfig": [
{
"secret": "php[{onfig",
"deny": "0.0.0.0/0.0.0.0",
"permit": "127.0.0.1/255.255.255.0",
"read": "system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan",
"write": "system,call,log,verbose,command,agent,user,config,command,reporting,originate"
}
],
"phpagi": [
{
"secret": "phpagi",
"deny": "0.0.0.0/0.0.0.0",
"permit": "127.0.0.1/255.255.255.0",
"read": "system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan",
"write": "system,call,log,verbose,command,agent,user,config,command,reporting,originate"
}
],
"AstTapi": [
{
"secret": "AstTapi",
"deny": "0.0.0.0/0.0.0.0",
"permit": "127.0.0.1/255.255.255.0",
"read": "system,call,log,verbose,command,agent,user",
"write": "system,call,log,verbose,command,agent,user"
}
],
"a2billinguser": [
{
"secret": "a2billing",
"deny": "0.0.0.0/0.0.0.0",
"permit": "127.0.0.1/255.255.255.0",
"read": "system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan",
"write": "system,call,log,verbose,command,agent,user,config,command,reporting,originate"
}
],
"remote_mgr": [
{
"secret": "0chanc3yo",
"deny": "0.0.0.0/0.0.0.0",
"permit": "127.0.0.1/255.255.255.0",
"read": "system,call,log,verbose,command,agent,user",
"write": "system,call,log,verbose,command,agent,user"
}
]
}