I have an array that looks like this :
[
{"value": {
"api_rev":"1.0",
"type":"router",
"hostname":"Router Hasselt",
"lat":50.9307,
"lon":5.33248,
"elev":50,
"aliases":[
{
"type":"wired",
"alias":"11.96.253.9"
}],
"community":"Antwerpen",
"attributes":{"firmware":""}}}]"
Is it possible to remove [{"value": and obviously the closing of it at the end }] and leave the rest as it is ? I tried unsetting "value" but this actually removes everything which i understand why. But if there is a workaround i will appreciate !
I expect this :
{
"api_rev":"1.0",
"type":"router",
"hostname":"Router Hasselt",
"lat":50.9307,
"lon":5.33248,
"elev":50,
"aliases":[
{
"type":"wired",
"alias":"11.96.253.9"
}],
"community":"Antwerpen",
"attributes":{"firmware":""}}"