Not a bad thought but you might notice that I had an array in my hash which I needed in the JSON output:
{"Answer":[{"ip":"3.4.5.6"},{"ip":"1.2.4.5"}],"id":"4","host":"www.goo
+gle.com"}
This is certainly doable in a database (SQLite or PostgreSQL) but would involve another table and then a complicated query to get into the proper format to make it into JSON.
Not as easy as it sounds in my specific use case, but certainly something I had considered at one point.
Thanks for the pointer in this direction and the friendly reminder.
2018-01-28 Athanasius changed pre to code tags
|