JSON file differentiation comparison method and device

A file and text technology, applied in the field of JSON file differential comparison method and device, can solve the problems of misjudgment rate, high misjudgment rate of comparison results, low efficiency, etc., to improve speed, reduce misjudgment risk, and solve misjudgment Judgment effect

Inactive Publication Date: 2021-07-30
南京冰鉴信息科技有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For example, if the two files to be compared (File1 and File2) are compared directly, the misjudgment rate of the comparison results without pre-sorting processing is high, and the final result still needs to be manually identified and summarized by secondary parameters. Artificial pre-sorting and secondary result identification are not only efficient low misjudgment rate
The two files to be compared need to be converted into JSON Object objects in advance, and sorted according to the same rule, which improves the comparison accuracy and the recognition efficiency of the actual test results in a certain procedure, but the final result still needs to be manually identified and summarized by secondary parameters , artificial pre-sorting and secondary result recognition are not only inefficient but also have a misjudgment rate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • JSON file differentiation comparison method and device
  • JSON file differentiation comparison method and device
  • JSON file differentiation comparison method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] The present application will be described in detail below with reference to the accompanying drawings, and the specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments.

[0066] In the prior art, there are many text comparison tools, such as Beyond Compare and some online comparison tools. In the technical solution of the prior art, for the comparison of JSON text, it is divided into two cases: text parsing and non-parsing: first, use the text method to read the contents of File1 and File2 line by line, and perform text comparison according to the line content , mark the difference in File1 and File2 with different words (multi-words) and lines (multi-lines) in color blocks; second, parse File1 and File2JSON texts, and perform key and value analysis on the parsed File1 and File2 respectively. For comparison, different content is marked with different color blocks (different colors mark different types of di...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a JSON file differentiation comparison method and device, and relates to the technical field of data processing. Keys of a first key value pair in the first test sample file are traversed, a second key value pair which is the same as the keys of the first key value is found from the second test sample file, and the value of the first key value pair is compared with the value of the second key value pair, so that a differential comparison result of the first test sample file and the second test sample file is obtained. According to the scheme, the sorting pre-operation on the JSON test sample file can be reduced, and the technical problems of low accuracy of disordered comparison and misjudgment are solved; meanwhile, the identification and statistics of the comparison result do not need to be manually participated for the second time, so that the misjudgment risk of manual operation can be reduced and the working efficiency can be improved; the comparison result is output, so that tracking and backtracking of comparison differences of JSON test sample files can be facilitated; in addition, compared with the prior art, only one-time traversal is needed, the occupation of calculation resources in the comparison process can be reduced, and the text comparison speed is increased.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular, to a JSON file differential comparison method and device. Background technique [0002] JSON (JavaScript Object Notation, JS Object Notation) is a lightweight data exchange format. It is based on a subset of ECMAScript (the JS specification developed by the European Computer Association), and uses a text format that is completely independent of the programming language to store and represent data. It is easy for people to read and write, and it is also easy for machines to parse and generate, and it can effectively improve the efficiency of network transmission. The simplicity and clear hierarchy make JSON an ideal data-interchange format for widespread use today. [0003] At present, the mainstream use of JSON data format for business data interaction is faced with frequent regression testing, multi-version testing, data source switching testing, and multi-envi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F11/36
CPCG06F8/315G06F11/3608
Inventor 顾凌云郭志攀王伟赵晖
Owner 南京冰鉴信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products