Supercharge Your Innovation With Domain-Expert AI Agents!

Algorithm for intelligently converting JSON and XML format data into traditional data table format

A technology of format data and data table, applied in the direction of digital data processing, natural language data processing, calculation, etc., can solve the problem of no JSON or XML format data conversion, etc.

Pending Publication Date: 2021-05-11
南京思迈恩传媒科技有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide an algorithm for intelligently converting JSON and XML format data into traditional data table format, aiming to solve the problem that there is no general, all-round algorithm for converting JSON or XML format data into traditional data table format in the prior art And other issues

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
  • Algorithm for intelligently converting JSON and XML format data into traditional data table format
  • Algorithm for intelligently converting JSON and XML format data into traditional data table format
  • Algorithm for intelligently converting JSON and XML format data into traditional data table format

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0023] Such as Figure 1-4 Shown, as an embodiment of the present invention, a kind of JSON, the algorithm that XML format data is intelligently converted into traditional data table format, comprises the following steps: Step S1, data analysis, is different from traditional one-dimensional or two-dimensional data table mark data The location is composed of row number and column number. When parsing JSON format data or XML format data, the data node name is inherited from the parent node name, and a data tree composed of unique node names at the same latitude is obtained after parsing, which is used to ensure data Planarize the tree and ensure that the data tree has a unique data index. Since the result of parsing data in JSON format in the standard sense should be JAVAObject, and what the present invention needs to o...

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 invention discloses an algorithm for intelligently converting JSON and XML format data into a traditional data table format, which comprises the following steps: S1, data analysis: carrying out father node name inheritance on data node names when JSON format data is analyzed by a data tree formed by unique node names at the same latitude to obtain abstract key value pairs; S2, data extraction: performing table definition on an abstract data tree obtained by performing data analysis on the JSON format data so as to perform table data many-to-one or many-to-many data ambiguity elimination on a plurality of traditional one-dimensional or two-dimensional table data contained in the data tree; and S3, expansion: carrying out comparison of a data macro replacement practical algorithm on the extracted table data. The algorithm for converting the universal and versatile JSON or XML format data into the traditional data table format is realized, so that the algorithm has the advantages of wide application range and high practicability, and meanwhile, the algorithm instance in the prior art is realized by using the C# language.

Description

technical field [0001] The invention relates to the technical field of Internet industry data interaction formats, in particular to an algorithm for intelligently converting JSON and XML format data into traditional data table formats. Background technique [0002] On February 10, 1998, W3C (World Wide Web Consortium, World Wide Web Consortium) announced the XML 1.0 standard; JSON (JavaScript Object Notation) is a data format that Douglas Crockford began to promote in 2001. It officially became the mainstream data format in 2005-2006. Currently, JSON has become the de facto standard for data interaction formats in the Internet industry. [0003] XML is an enhanced implementation of HTML, and JSON is more powerful, just like its name: JS Object Notation, which can describe almost all JavaScript objects. [0004] However, none of them provide backward compatibility, and there is no reverse conversion definition from XML to HTML; JSON can only be converted into JS objects. ...

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
IPC IPC(8): G06F40/154
CPCG06F40/154
Inventor 华骁
Owner 南京思迈恩传媒科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More