I have used JSON::Any in my program to transfer the hash between client and server.
I faced one problem, I want to find whether the text (sent by client) is normal text or JSON encoded text.
Can anyone please tell me how to find,
without checking, I got some error in server side and it is closed.
You can’t do it without checking. The most simple approach is to just do the decoding and then handle the exception.