Atitit A structured view solution for large JSON files, a high performance Jsonview Attilax summary. docx

Source: Internet
Author: User

Atitit a structured view solution for large json files , High performance Jsonview attilax Summary . docx

1.1. Achieve Goal:1

1.2. implement key with value type: The position of non-jsonobject Jsonarray has been analyzed . 1

1.3. Existing issues Fastjson uses The contents of the string format, causing the file content size to remain capped. 1

1.4. effect 2

1.5. Reference 4

Choose a lot of Jsonviewer, only for small data volume of the file to take effect. When it comes to json files around 9M , it's all about the rest of the dish.

I had to write my own jsonview tool.

D:\0workspace\atiplat_restapi\src\com\attilax\json\JsonViewBigFile.java

1.1. achieve the goal:

too many arrays can only symbolically intercept 2 analysis.

extract The JSON skeleton:

1.2. implement the key with the value type: The position of non-jsonobject Jsonarray has been analyzed .

1.3. Existing problem Fastjson uses the content in string format, causing the file content size to remain capped.

But the ceiling should be around 50M.

1.4. effect

{

"Code": "Java.lang.String",

"MSG": "Java.lang.String",

"Result": {

"Deptmembers": [{

"DeptID": "Java.lang.String",

"DisplayName": "Java.lang.String",

"Duty": {

"Dutyname": "Java.lang.String"

},

"ManagerID": "Java.lang.Integer",

"Status": "Java.lang.String",

"Timestamp": "Java.lang.Long",

"Useid": "Java.lang.String",

"User": {

"Birthday": "Java.lang.String",

"Email": "Java.lang.String",

"Gesch": "Java.lang.String",

"Icnum": "Java.lang.String",

"id": "java.lang.String",

"Isoauser": "Java.lang.Integer",

"Joindate": "Java.lang.String",

"Nickname": "Java.lang.String",

"Orgeh": "Java.lang.String",

"Persk": "Java.lang.String",

"Persktxt": "Java.lang.String",

"Phone": "Java.lang.String",

"Plans": "Java.lang.String",

"Planstxt": "Java.lang.String",

"Portraituri": "Java.lang.String",

"Region": "Java.lang.String",

"Tel": "Java.lang.String",

"Werks": "Java.lang.String",

"Workaddress": "Java.lang.String",

"ZHRJG": "Java.lang.String",

"Zwtype": "Java.lang.String",

"Zwtypetxt": "Java.lang.String"

}

}, {

"DeptID": "Java.lang.String",

"DisplayName": "Java.lang.String",

"Duty": {

"Dutyname": "Java.lang.String"

},

"ManagerID": "Java.lang.Integer",

"Status": "Java.lang.String",

"Timestamp": "Java.lang.Long",

"Useid": "Java.lang.String",

"User": {

"Birthday": "Java.lang.String",

"Email": "Java.lang.String",

"Gesch": "Java.lang.String",

"Icnum": "Java.lang.String",

"id": "java.lang.String",

"Isoauser": "Java.lang.Integer",

"Joindate": "Java.lang.String",

"Nickname": "Java.lang.String",

"Orgeh": "Java.lang.String",

"Persk": "Java.lang.String",

"Persktxt": "Java.lang.String",

"Phone": "Java.lang.String",

"Plans": "Java.lang.String",

"Planstxt": "Java.lang.String",

"Portraituri": "Java.lang.String",

"Region": "Java.lang.String",

"Tel": "Java.lang.String",

"Werks": "Java.lang.String",

"Workaddress": "Java.lang.String",

"ZHRJG": "Java.lang.String",

"Zwtype": "Java.lang.String",

"Zwtypetxt": "Java.lang.String"

}

}

],

"Depts": [{

"Deptname": "Java.lang.String",

"id": "java.lang.String",

"ParentID": "Java.lang.String",

"Sort": "Java.lang.Integer",

"Status": "Java.lang.String",

"Timestamp": "Java.lang.Long"

}, {

"Deptname": "Java.lang.String",

"id": "java.lang.String",

"ParentID": "Java.lang.String",

"Sort": "Java.lang.Integer",

"Status": "Java.lang.String",

"Timestamp": "Java.lang.Long"

}

],

"Timestamp": "Java.lang.Long"

}

}

1.5. References

Atitit Lightweight json viewer

Sublime3 doesn't seem to have

Scite2.3 is not better.

notepad++ is not the default. Plugins can not find the "JSON Viewer" election , in the jstool inside the. 9M File View Card dead:

J sonview independent exe. No way. 9M viewing will fail ... Small files can:

F F D J Sonview plug-in not AH. The card is dying. Big file is no good.

Three models JSON view gadget-preftest-blog Park. html

author :: Nickname: Old Wow's paw claw of Eagle idol iconoclast Image-smasher

Bird King "Bird Catcher Kok devout pious religious defender Defender of the Faith. Caracalla red cloak Caracalla red cloak king of beasts

abbreviation:: Emir Attilax Akbar Emile Atiraca

Full Name:: Emir Attilax Akbar bin Mahmud bin Attila bin Solomon bin Adam Al Rapanui Emile Atilax Akbaben Maham Solomon Ben Adam Arrapanui

Common name: Etila (Ayron), Email:[email protected]

title:Head of Uke headquarters, founder of Global Grid project,

Uke Friendship Association president Uke Hunting Association president Emir Uke Tribe chief Grand Chief,

Uke, Minister of Religious and Cultural Integration Affairs, Vice-Chairman of the Uke Reformation Commission

Uke system and chairman of the major conference committee, Uke Security Department Chief Brigade, Uke System Inspection Committee vice President,

UKE Chief CTO Software Division Director of Technical department deputy Director of Research and Development department Director of Product department deputy Manager Project department deputy Manager Uke Science and Technology research Institute Dean Uke Software Training Master

Uke Polynesia District chain Head of the area responsible for the Kingdom of Tonga Uke Kerr Glen, chain head, Line Is. district chain head, Uke Bouvet and South Georgia and South Sandwich Is. region chain Head

Uke, chairman of the Association of Software Standardization, vice president of Uke Database and storage Standardization Association

Uke, founder of Uke Hospital and Medical school, vice president of lifelong Education School

UEC, president of UECIP, director of UKE document Retrieval department, head of Department of image processing machine vision

Uke, chief Dean of the School of image processing and machine vision

Uke Outdoor Sports Association chairman of the resort chief Mayor Uke Press editor

reprint Please indicate source:Attilax's column? http://www.cnblogs.com/attilax/

--atiend V8

Atitit A structured view solution for large JSON files, a high performance Jsonview Attilax summary. docx

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.