Home > Back-end >  In the form of JAVA, to identify the json data and separate
In the form of JAVA, to identify the json data and separate

Time:12-08

Such as title: database fields may be deposited in the form of json data, may save the string is how to identify the data in the form of json and isolated

I need to get the content is saved as a json data in the form of the name value in comparing with other data, how to operate?

CodePudding user response:

Simple judgment whether to json format, judgment rule: whether waht is {} or [], if is not not a json format of data

CodePudding user response:

Judging by fastjson parsing, parsing is successful, is the json format; Otherwise, not a json format
  • Related