[triangle-zpug] python parsing JSON

Justin Parker xjparkerx at gmail.com
Thu Dec 25 03:38:27 UTC 2014


I have no doubt that this has probably been answered in some form or 
fashion multiple times. Unfortunately, I am having a terrible time 
getting something to work.  Any help would be greatly appreciated.

I have this json data:

"log": {
     "id": "http://192.168.43.81:8080/api/collections/nodes/node1/log",
     "name": "log"
   },
   "tags": [],
   "facts": {
     "hardwareisa": "x86_64",
     "macaddress": "08:00:27:e7:06:4d",
     "architecture": "x86_64",
     "hardwaremodel": "x86_64",
     "processor0": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz",
     "processorcount": "1",
     "interfaces": "enp0s17,lo",
     "ipaddress_enp0s17": "192.168.1.63"
   },

I'm trying to parse this data to get the value for macaddress using the 
standard json library.

Again any help would be greatly appreciated.
Justin



More information about the triangle-zpug mailing list