Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Memory utilization and hashes

by bfdi533 (Friar)
on Jan 18, 2018 at 23:51 UTC ( [id://1207493]=note: print w/replies, xml ) Need Help??


in reply to Re: Memory utilization and hashes
in thread Memory utilization and hashes

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207493]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found