Hallo,
Example :
{
"fw1": {
"ipv4": {
"rtr": {
"ip": "1.2.3.4",
"net": "1.2.3.4",
}
}
},
"fw2": {
"ipv4": {
"rtr": {
"ip": "4.3.2.1",
"net": "4.3.2.1",
}
}
}
}
I need to parse the first level keys of a json file. Using
'from_json).keys()' i get a strange syntax --> [u'fw1', u'fw2'].
How do the 'u' characters come from and how to get rid of them ? Is there
any way to list the keys instead of getting them in an Array ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7c1f4c90-f95c-4908-87ac-ab7675931f3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.