This question already has answers here:
Closed 7 years ago.
I'd like to parse a JSON string with PERL.
My JSON string;
{"to_id": 0, "message": "This is a sample", "message_id": 1000, "from_id": 999}
How to parse the JSON and return all objects and values.
Sample output;
to_id: 0
message: This is a sample
message_id: 1000
from_id: 999
No XML output and object and value in separate variables
Thanks in advance