Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

JSON character string processing method and device

A processing method and string technology, applied in the field of computer applications, can solve the problems of insufficient JSON data, troubled data processors, and cumbersome type loading, so as to avoid cumbersome loading, high-performance parameter comparison, and easy analysis and extraction. Effect

Active Publication Date: 2019-09-20
ADVANCED NEW TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, both of these existing solutions are insufficient for processing JSON data
The former existing solution requires a specific class definition, and each type needs to refer to the specified definition. If there are a large number of types of JSON, it needs to refer to the definitions of many classes, and the type loading is cumbersome. Causing distress
The latter existing solution is through the matching method. In order to be accurate to a specific value, more additional conditions are often required, because the value (value) corresponding to a key (key) in JSON usually appears in multiple place, so the latter existing solution has low accuracy

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 character string processing method and device
  • JSON character string processing method and device
  • JSON character string processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and realize the subjects described herein, and is not to limit the scope of protection, applicability or examples set forth in the claims. The function and arrangement of the discussed elements can be changed without departing from the scope of protection of the present disclosure. Various examples can omit, replace or add various procedures or components as needed. For example, the described method may be executed in a different order from the described order, and various steps may be added, omitted, or combined. In addition, features described with respect to some examples can also be combined in other examples.

[0035] As used herein, the term "including" and its variations mean open terms, meaning "including but not limited to". The term "base...

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 JSON character string processing method and device. The method comprises the steps that of conducting deserialization processing is conducted on a JSON character string to extract a bottom layer element in the JSON character string, and the bottom layer element comprisinges a bottom layer key name and a corresponding first key value; for each underlying element in the underlying elements, generating an index of the underlying element based on the underlying key name of the underlying element; and generating structured data based on the generated index of each underlying element and the corresponding first key value. By utilizing the method disclosed by the invention, the JSON character string can be stored in a structured manner, so that subsequent loading and use are facilitated.

Description

Technical field [0001] The present disclosure generally relates to computer application technology, and more specifically, to a JSON string processing method and device. Background technique [0002] At present, the data directly used for analysis is often structured. Structured data is also called row data. It is data that is logically expressed and realized by a two-dimensional table structure. It needs to strictly follow data format specifications and is mainly stored through relational databases. And management. Corresponding unstructured data is data with irregular or incomplete data structure, without a predefined data model, and data that cannot be represented by a relational model. [0003] In a conventional business system, data is defined by system requirements. The interaction of data in interface calls, parameter passing, return values, and network transmission is usually carried by classes, and then these are transferred through logs, interceptors, etc. Classes are r...

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): G06F16/28G06F16/25
CPCG06F16/285G06F16/258
Inventor 孙文韬
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products