I am using an API to get response, In ajax success
, I get this kind of response
{
"Capabilities": {
"System": {
"SystemLogging": "true",
"SystemBackup": "true",
"StorageConfiguration": "false",
"RemoteDiscovery": "true",
"HttpSystemLogging": "false",
"HttpSystemBackup": "true",
"HttpSupportInformation": "false",
"HttpFirmwareUpgrade": "true",
"FirmwareUpgrade": "true",
"DiscoveryResolve": "false",
"DiscoveryBye": "true"
},
"Security": {
"X.509Token": "false",
"UsernameToken": "true",
"TLS1.2": "false",
"TLS1.1": "false",
"TLS1.0": "false",
"SupportedEAPMethods": "0",
"SAMLToken": "false",
"RemoteUserHandling": "false",
"RELToken": "false",
"OnboardKeyGeneration": "false",
"MaxUsers": "32",
"MaxUserNameLength": "32",
"MaxPasswordLength": "16",
"KerberosToken": "false",
"HttpDigest": "true",
"Dot1X": "false",
"DefaultAccessPolicy": "true",
"AccessPolicyConfig": "false"
},
"Network": {
"ZeroConfiguration": "true",
"NTP": "1",
"IPVersion6": "true",
"IPFilter": "true",
"HostnameFromDHCP": "true",
"DynDNS": "true",
"Dot1XConfigurations": "0",
"Dot11Configuration": "false",
"DHCPv6": "true"
}
}
}
I want to parse this to table
, But instead of that just to try out, I am appending it to xmp
tag. But its coming as an [object Object]. Even if I do parseJSON, I get error for that.
"<xmp>
#{data}
</xm>
Is it possible to make something more dynamic that , It may handle that response?
UPDATE: I tried using https://github.com/abodelot/jquery.json-viewer it worked good but I want to parse it table is it possible?