<div dir="ltr">Hi Justin,<div><br></div><div>Your JSON data as pasted in the email seems to be missing the outmost braces.  Also, the last comma after the "facts" dictionary will cause it to fail to parse (<a href="http://stackoverflow.com/questions/201782/can-you-use-a-trailing-comma-in-a-json-object">http://stackoverflow.com/questions/201782/can-you-use-a-trailing-comma-in-a-json-object</a>).<br></div><div><br></div><div><div>I've created a gist using your data (with the above issues fixed) and added some sample code (Python 2.6 or later) to get the mac address: <a href="https://gist.github.com/cchurch/a4c5778f5f8ced0b01d7">https://gist.github.com/cchurch/a4c5778f5f8ced0b01d7</a></div><div><br></div></div><div>You may also want to join the trizpug mailing list (<a href="https://mail.python.org/mailman/listinfo/trizpug/">https://mail.python.org/mailman/listinfo/trizpug/</a>).  This one doesn't seem to be used much any more.</div><div><br></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote">On Wed, Dec 24, 2014 at 10:38 PM, Justin Parker <span dir="ltr"><<a href="mailto:xjparkerx@gmail.com" target="_blank">xjparkerx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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.<br>
<br>
I have this json data:<br>
<br>
"log": {<br>
    "id": "<a href="http://192.168.43.81:8080/api/collections/nodes/node1/log" target="_blank">http://192.168.43.81:8080/<u></u>api/collections/nodes/node1/<u></u>log</a>",<br>
    "name": "log"<br>
  },<br>
  "tags": [],<br>
  "facts": {<br>
    "hardwareisa": "x86_64",<br>
    "macaddress": "08:00:27:e7:06:4d",<br>
    "architecture": "x86_64",<br>
    "hardwaremodel": "x86_64",<br>
    "processor0": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz",<br>
    "processorcount": "1",<br>
    "interfaces": "enp0s17,lo",<br>
    "ipaddress_enp0s17": "192.168.1.63"<br>
  },<br>
<br>
I'm trying to parse this data to get the value for macaddress using the standard json library.<br>
<br>
Again any help would be greatly appreciated.<br>
Justin<br>
<br>
______________________________<u></u>_________________<br>
triangle-zpug mailing list<br>
<a href="mailto:triangle-zpug@starship.python.net" target="_blank">triangle-zpug@starship.python.<u></u>net</a><br>
<a href="http://starship.python.net/mailman/listinfo/triangle-zpug" target="_blank">http://starship.python.net/<u></u>mailman/listinfo/triangle-zpug</a><br>
</blockquote></div><br></div></div>