Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for converting JSON data into two-dimensional array

A two-dimensional array and data technology, applied in the field of data processing, can solve the problems of unstable two-dimensional array structure, incompatibility with JSON data, etc., and achieve the effect of convenient and unified storage

Active Publication Date: 2015-12-09
GOERTEK INC
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above problems, the object of the present invention is to provide a method and system for converting JSON data to a two-dimensional array, so as to solve the problem that the conversion of the existing conversion method to obtain a two-dimensional array structure is unstable and cannot be compatible with JSON data in any format. question

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
  • Method and system for converting JSON data into two-dimensional array
  • Method and system for converting JSON data into two-dimensional array
  • Method and system for converting JSON data into two-dimensional array

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0027] In view of the problem that the structure of the converted two-dimensional array in the aforementioned existing method for converting JSON data to a two-dimensional array is unstable and cannot be compatible with JSON data in any format, the present invention provides a string processing mechanism combined with the built-in memory The two data stacks (namely attribute name stack and structure character stack), so that the conversion of JSON data to two-dimensional array bypasses the traditional serialization and reprocessing process, and then directly converts to a two-dimensional array with stable structure, and The converted two-dimensional array is compatible with JSON data in any format, which can facilitate subsequent unified storage, database design and reprocessing, etc.

[0028] In order to illustrate the method for converting J...

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 provides a method and system for converting JSON data into a two-dimensional array. The method comprises the steps that a memory data base is set up and comprises an attribute name base and a structure character base; according to the set-up memory data base, all character strings in the JSON data are sequentially read with a separator of the JSON data as a boundary, and two-dimensional array converting is carried out on the read current character strings according to the types of the read current character strings. By means of the method, direct converting can be carried out to obtain the two-dimensional array of a stable structure, the two-dimensional array obtained through conversion is compatible with the JSON data of any format, and follow-up operation such as unified storage, database design and reprocessing can be carried out conveniently.

Description

technical field [0001] The present invention relates to the technical field of data processing, and more specifically, to a method and system for converting JSON data into a two-dimensional array. Background technique [0002] JSON (JavaScriptObjectNotation, JavaScript Object Notation) is a lightweight data exchange format based on a subset of JavaScript. JSON adopts a completely language-independent text format without any tags, but also uses the habits similar to the C language family. It is precisely because of the unique characteristics of JSON that JSON becomes an ideal data exchange language, which is easy for people to Reading and writing, but also easy machine conversion and generation. For example, you can use JSON to pass an array, you can also pass an object, and even pass complex objects of the above two. [0003] In actual needs, it is often necessary to expand JSON data in complex formats into two-dimensional arrays for storage or other processing. The curre...

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): G06F17/30
CPCG06F16/258
Inventor 焦玉乾刘凯凯尚晶文张广平宋永国
Owner GOERTEK INC
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