Parsing JSON returning Null

Written by
Link to Post by 

I have a small script which parses through a json file populated by a Curl request but am having trouble getting certain JSON fields to print anything.

Here is the script:

Here is the JSON:

So the collector and command fields are printing the proper JSON result, but the ‘Company Key’, ‘File Size’, ‘Full path’, and ‘Config Data’ is printing nothing for strings or 0 for int.

Apologies, I am a network guy slowly learning Go so I wasn’t sure where else to turn for this. Thanks

submitted by /u/networkninja7
[link] [comments]

Article Tags:
· ·
Article Categories:

Leave a Reply