in reply to Re^3: JSON to HASH
in thread JSON to HASH

Let me play with that, I'll have to figure out how to read the string from the json file properly i imagine... i'm currently using:
sub ServerData { $GSD_JSON = do { open (JSONDATA, "<:encoding(UTF-8)", "/HTTPS/prinet\.org/\.dat +a\.settings"); local $/; <JSONDATA> }; close (JSONDATA); $GSD_Handle = JSON->new; return ($GSD_Handle->decode($GSD_JSON)); }
which gives me a one-liner $json_string (that i was trying to make a %hash with $key{$value} with. thanx, let me fiddle with your suggestion

I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...