Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to test a empty JSON string?

scottjhnOct 8 2009 — edited Oct 8 2009
There is a String x = {"list":[],"javaClass":"java.util.ArrayList"};

This is JSON type of string.

In this case, the list is empty. My question is, how can I test if a JSON type of string, such as the above, is empty or not?


Thanks

Scott
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2009
Added on Oct 8 2009
1 comment
283 views