How do I find the difference between normal text and the JSON encoded text in Perl?

Posted by sganesh on Stack Overflow See other posts from Stack Overflow or by sganesh
Published on 2010-04-06T07:49:03Z Indexed on 2010/04/07 18:13 UTC
Read the original article Hit count: 218

Filed under:

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.

© Stack Overflow or respective owner

Related posts about perl