Mysql-java parses Sina Weibo Json data and obtains uid and text

Source: Internet
Author: User
The json format is {& quot; reposts_count & quot;: 0, & quot; mlevel & quot;: 0, ** & quot; user_id & quot;: 1620302927, ** & quot; retweeted_status & quot;: {& quot; reposts_count & quot;: 1, & quot; user_id & quot;: 2209251457, ** & quot; text & quot;: & quot; u4e24u6735u5c0fu83cau82b1u554 mysql data mining javajson

The json format is as follows:
{"Reposts_count": 0, "mlevel": 0,"Maid": 1620302927,"Retweeted_status": {"reposts_count": 1, "user_id": 2209251457,"Text": "\ u4e24 \ u6735 \ u5c0f \ u83ca \ u82b1 \ u554a, \ u5f00 \ u5728 \ u82b1 \ u4e1b \ u4e2d \ u554a "}

There are a large number of disks, which exist in the txt text. The current process is as follows: read the text-> parse Json, get uid and text (change UTF-8 encoding to Chinese) -> saved to the retweetedWeibo table of the MySql database. there are only two fields (uid and text ).

I have found a lot of java json parsing code on the Internet, but it is wrong and messy. some use jar packages, and some do not know clearly. I am crazy about it. If the gods solve my problem, add C coins!

Why do you only see json parsing? What about others? What other requirements have been written above? In addition, I have seen your Json parsing code on the Internet, and some have tried it. I actually want the full version of the code. It's hard for everyone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.