Data serialization processing method and device and computer system

An information processing method and serialization technology, applied in transmission systems, program code conversion, electrical components, etc., can solve problems such as abnormal running state and data cannot be completely restored, and achieve the effect of reducing the probability of abnormality

Active Publication Date: 2020-10-09
ALIBABA GRP HLDG LTD
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in practical applications, in the process of data serialization and deserialization, the data may not be completely restored, or the operating state may be abnormal.

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
  • Data serialization processing method and device and computer system
  • Data serialization processing method and device and computer system
  • Data serialization processing method and device and computer system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] In the first embodiment, the application scenario of the rule center server in the information service system is mainly introduced in combination with the above commodities. Specifically, Embodiment 1 provides a method for processing business rule information, see figure 2 , the method may specifically include:

[0068] S201: The rule center server receives business rule configuration information, the business rule information includes condition information described in JSON format, the condition information includes at least one element, the element value corresponding to the element, and the data type of the element value information;

[0069] Specifically, the business rule configuration information may be provided by the business party. During specific implementation, optional element identification information and corresponding meaning information may also be provided, so as to set the element value for the element identification. Describe the condition informat...

Embodiment 2

[0080] The second embodiment provides a data serialization processing method, specifically, see image 3 , the method may specifically include:

[0081] S301: Obtain data in JSON format, where the data includes at least one element, an element value corresponding to the element, and data type information of the element value;

[0082] Wherein, the same element can set element values ​​of different data types in different data.

[0083] S302: In the process of persistently saving the data, perform serialization processing on the data, and save the data type information of the element value in the serialization information;

[0084] Wherein, the serialization information can be expressed as a character string including an element name field, an element value field, and an element value type field; The above JSON data determines the information on each field, and generates a corresponding character string according to the information on each field.

[0085] S303: When deserial...

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 discloses a data serialization processing method and device and a computer system, and the method comprises the steps: obtaining data in a JSON format, and the data comprising at least one element, an element value corresponding to the element, and the data type information of the element value; in the process of persistently storing the data, performing serialization processing on the data, and storing data type information of the element values in serialization information; and when deserialization processing is carried out on the serialization information, carrying out JSON data reduction according to the data type information of the element values. Through the embodiment of the invention, serialization and deserialization of the data can be carried out more accurately, and the normal operation state is ensured.

Description

technical field [0001] The present application relates to the technical field of JSON data processing, in particular to a data serialization processing method, device and computer system. Background technique [0002] JSON is an acronym for JavaScript Object Notation, which is a data interchange format. In common network applications, whether it is server or client, parsing XML code will be very cumbersome, while JSON is more suitable for data transmission and analysis, using JSON format for data transmission is not only convenient for transmission and analysis, but also particularly easy People read and write. However, data in JSON format usually exists in the form of key-value pairs, which is not conducive to persistent storage. Therefore, when persistent storage is required, it is usually necessary to serialize the JSON object first. as a string. When this kind of data needs to be used, the string is converted into a JSON object during deserialization. However, in pra...

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): H04L29/08H04L29/06G06F8/40
CPCH04L69/06H04L69/22G06F8/40H04L67/565
Inventor 张群辉潘玉民冯微峰夏斐尹长江方小瑞张黎静马莉亚段亚军高鹏程曾露祁小彦沈东佳
Owner ALIBABA GRP HLDG LTD
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