Here is a link that tells us how to extract json from a text!
Extract JSON from text
But I need it use Java with high performance, and I really don’t want use the three-part plugin to help with.
Who can help me? it got me crazy. Thank you all.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you really have a performance problem? Hard to know if you haven’t measured it. And that’s hard to do if you haven’t written any code yet. Look you aren’t going to write a super fast JSON parser that no one else hasn’t already done for you. You’re roughly going to have to do the same amount of work that anyone who created a 3rd party plugin has already done. Stop worrying about performance and go get a library to do this for you. There are plenty out there. Plain vanilla JSONObject fits the bill.
http://json.org
Personally I like http://flexjson.sourceforget.net it has descent performance and good feature set.