I'm using the Perl module, JSON when handling JSON data in a perl script.
I was looking to use valid_json from the JSON::Parser module, however it looks as though the version i'm using, 2.53 has deprecated this.
Reading the docs for 2.53, i cannot see any validation functions.
Am i just to rely on decode_json, & encode_json returns to tell me that a JSON string is invalid?
You may decode_json in eval and see if it will throw an exception.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With