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

Method and device for serializing data object as well as method and device for deserializing data object

A data object and deserialization technology, which is applied in the direction of electronic digital data processing, special data processing applications, unstructured text data retrieval, etc., can solve problems such as difficult to implement, complex and difficult data hierarchy, and achieve easy maintenance, Resolve hierarchical complex, more maintainable effects

Inactive Publication Date: 2017-01-04
ALIBABA GRP HLDG LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The text format generated by the traditional Json format serialization method is characterized by a complex data hierarchy
Therefore, in some scenarios that cannot be deserialized and can only directly access the text format (such as: when stored in a database field), since the Json format is a large text string, it is necessary to find out where some of the text data is located. location is more difficult
In addition, if some text content needs to be modified to other content, it will be more difficult to achieve

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 device for serializing data object as well as method and device for deserializing data object
  • Method and device for serializing data object as well as method and device for deserializing data object
  • Method and device for serializing data object as well as method and device for deserializing data object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] In order to make the technical problems, technical solutions and beneficial effects to be solved by this application clearer and clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0077] The data object serialization method provided by the embodiment of the present application can simplify the hierarchical structure of the data object description and improve the efficiency of data query and modification.

[0078] exist figure 1 In the described embodiment, the data object serialization method specifically includes:

[0079] Step 101, acquiring a data object.

[0080] In this step, before serializing the data object, the data object needs to be obtained first.

[0081] In the embodiment of the present inventio...

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 method and a device for serializing a data object as well as a method and a device for deserializing the data object. The method for serializing the data object comprises the following steps: acquiring the data object; by taking the data object as a parameter, calling a serialization function, and acquiring root properties included in the data object; generating a text path according to positions of the root properties in the data object; acquiring attribute value objects corresponding to the root properties, and converting the attribute value objects into text values; linking the text path and the text values corresponding to the same root properties through equal signs to form a text format of attribute value pairs, and generating serialized results of the respective root properties. According to the method disclosed by the invention, a hierarchical structure described by the data object can be simplified, and data query efficiency and data modification efficiency can be increased.

Description

technical field [0001] The present application relates to the field of computer application technology, in particular to a method and device for serializing and deserializing data objects. Background technique [0002] Serialization is the process of converting an object's state information into a form that can be stored or transmitted. During serialization, an object writes its current state to temporary or persistent storage. Later, the object can be recreated by reading or deserializing the object's state from the store. [0003] Traditional serialization methods include: JavaBuildIn, hessian, xml, Json, etc. Among them, JavaBuildIn and hessian are binary-based serialization methods, and the serialized data is unreadable. XML is a text-based serialization method, but due to the structural characteristics of XML, the serialized text data structure is cumbersome and redundant. [0004] Relatively speaking, the currently more commonly used Json serialization method is a f...

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/30
Inventor 刘志敏
Owner ALIBABA GRP HLDG 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