Unlock instant, AI-driven research and patent intelligence for your innovation.

JSON data conversion method, apparatus, computer device, and storage medium

A conversion method and technology of a conversion device are applied in the field of information processing and can solve the problems of occupying a lot of memory resources and affecting the response speed of the system.

Pending Publication Date: 2019-03-01
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a JSON data conversion method, device, computer equipment, and storage medium to solve the problem that the JSON data is too large to occupy a lot of memory resources and affect the system response speed

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 data conversion method, apparatus, computer device, and storage medium
  • JSON data conversion method, apparatus, computer device, and storage medium
  • JSON data conversion method, apparatus, computer device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0029] The JSON data conversion method provided by this application can be applied in such as figure 1 In the application environment, the client is a computer terminal device that sends JSON data, including but not limited to browsers, mobile APPs, PC hosts, servers, smart terminals, etc. The server is a computer device or a virtual server that converts JSON data, and can be composed of servers or server clusters. The target client is a computer devi...

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 a JSON data conversion method, a device, a computer device and a storage medium. The method comprises the following steps: receiving JSON data and instantiating the JSON data into a JSON object; the reflection mechanism is used to obtain the attribute name and attribute value of JSON object; traversing the preset set of ordinary Java classes, using reflection mechanism to obtain the attribute name of each ordinary Java class in the set; for each normal Java class, comparing the attribute names of the common Java class and the JSON object one by one. If they are equal, the common Java class is instantiated as the common Java object, and the attribute values corresponding to the attribute names of the common Java class in the JSON object are assigned to the common Java object. The technical proposal of the invention splits the JSON data and maps the JSON data to the common Java object, which is beneficial to saving the system memory resources and overhead and improving the system response speed.

Description

technical field [0001] The invention relates to the field of information processing, in particular to a JSON data conversion method, device, computer equipment and storage medium. Background technique [0002] At present, the data exchange between the Web server and the Web client, or between the Web server and other servers is mostly performed in JSON format. [0003] JSON (JavaScript Object Notation) is a lightweight data exchange format that is easy to read and write by people, and easy to generate and parse by machines. It stores data in text format, completely independent of C, C++, C#, Java, JavaScript, Perl, Python and other programming languages, and can be easily used by programming languages. [0004] In the interaction process between systems, it is normal in the data exchange process to convert the JSON data sent by other systems into the data format required by the local, or to convert the local data into the JSON format and send it out. Among them, after the ...

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/25
Inventor 胡友兵
Owner PING AN TECH (SHENZHEN) CO LTD