# US 2026/0064653 A1 · Method, apparatus, device and media for managing data in an application

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064653 A1
- Document ID: US20260064653A1
- Status: Published application
- Kind: A1
- Application number: 18/928,633
- Filed: 2024-10-28
- Published: 2026-03-05
- Earliest claimed: 2024-08-27
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Zeqing Xie; Yifan Yang
- Web page: https://patentgrep.com/patent/US20260064653A1

## CPC

- G06F 16/2291: {User-Defined Types; Storage management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, apparatus, device, and medium for managing data in an application are provided. In a method, raw data in an application is received, the raw data including a definition of at least one data item. Mixed data associated with at least one data item is obtained, the mixed data including a first data portion in a first format and a second data portion in a second format. Here, the first format includes any one of a string format and an object format, the second format includes the other one of the string format and the object format, and for a data item in the at least one data item, the mixed data includes a data item represented in the first format or a data item represented in the second format. Storage resource overheads for loading relevant data of an application may be reduced.

## Claims

### Claim 1

A method for managing data in an application, comprising:
receiving raw data in the application, the raw data comprising a definition of at least one data item; and
obtaining mixed data associated with the at least one data item, the mixed data comprising a first data portion in a first format and a second data portion in a second format,
wherein the first format comprises any one of a string format and an object format, the second format comprises the other one of the string format and the object format, and with regard to a data item in the at least one data item, the mixed data comprises the data item represented in the first format or the data item represented in the second format.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first format is the string format and the second format is the object format, and obtaining the mixed data comprises:
obtaining the first data portion based on the definition of the at least one data item, the first data portion comprising at least one data entry corresponding to the at least one data item, a data entry in the at least one data entry being represented in the string format and comprising a key and a value; and
obtaining the second data portion, the second data portion being empty.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
in response to receiving a first access request from a business logic of the application for the data item, obtaining a data object corresponding to the data item based on a data entry corresponding to the data item in the at least one data entry, the data object being represented in the object format;
storing the data object into the second data portion; and
removing the data entry from the first data portion.

### Claim 4 (depends on 3)

The method of claim 3, wherein obtaining the first data portion comprises:
obtaining a name and a data value of the data item from the definition of the data item; and
setting the key of the data entry based on the name, and setting the value of the data entry based on the data value.

### Claim 5 (depends on 4)

The method of claim 4, wherein obtaining the data object comprises:
determining a name of the data object based on the key of the data entry; and
determining an instance of the data object based on the value of the data entry.

### Claim 6 (depends on 5)

The method of claim 5, wherein the object format is stored in a form of hash map and the instance has a type specified by the definition.

### Claim 7 (depends on 5)

The method of claim 5, wherein the data item is of a complex data type, a value of the complex data type comprises a nested sub-data item, wherein obtaining the data entry comprises determining the value of the data entry based on the sub-data item, the value comprising a sub-data entry associated with the sub-data item.

### Claim 8 (depends on 7)

The method of claim 7, wherein obtaining the instance of the data object comprises:
obtaining a sub-instance of the sub-data object based on the sub-data entry; and
adding the sub-instance to the instance.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first format is an object format and the second format is a string format, and the method further comprising:
in response to receiving a second access request of a business logic of the application for the data item, obtaining a data entry corresponding to the data item based on a data object corresponding to the data item in the first data portion, the data entry being represented in the string format;
writing the data entry to the second portion; and
removing the data object from the first portion.

### Claim 10 (depends on 1)

The method of claim 1, wherein the mixed data is stored in a heap of a memory of a device for executing the application.

### Claim 11

An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit that, when executed by the at least one processing unit, cause the electronic device to perform a method for managing data in an application, the method comprising:
receiving raw data in the application, the raw data comprising a definition of at least one data item; and
obtaining mixed data associated with the at least one data item, the mixed data comprising a first data portion in a first format and a second data portion in a second format,
wherein the first format comprises any one of a string format and an object format, the second format comprises the other one of the string format and the object format, and with regard to a data item in the at least one data item, the mixed data comprises the data item represented in the first format or the data item represented in the second format.

### Claim 12 (depends on 11)

The device of claim 11, wherein the first format is the string format and the second format is the object format, and obtaining the mixed data comprises:
obtaining the first data portion based on the definition of the at least one data item, the first data portion comprising at least one data entry corresponding to the at least one data item, a data entry in the at least one data entry being represented in the string format and comprising a key and a value; and
obtaining the second data portion, the second data portion being empty.

### Claim 13 (depends on 12)

The device of claim 12, wherein the method further comprises:
in response to receiving a first access request from a business logic of the application for the data item, obtaining a data object corresponding to the data item based on a data entry corresponding to the data item in the at least one data entry, the data object being represented in the object format;
storing the data object into the second data portion; and
removing the data entry from the first data portion.

### Claim 14 (depends on 13)

The device of claim 13, wherein obtaining the first data portion comprises:
obtaining a name and a data value of the data item from the definition of the data item; and
setting the key of the data entry based on the name, and setting the value of the data entry based on the data value.

### Claim 15 (depends on 14)

The device of claim 14, wherein obtaining the data object comprises:
determining a name of the data object based on the key of the data entry; and
determining an instance of the data object based on the value of the data entry.

### Claim 16 (depends on 15)

The device of claim 15, wherein the object format is stored in a form of hash map and the instance has a type specified by the definition.

### Claim 17 (depends on 15)

The device of claim 15, wherein the data item is of a complex data type, a value of the complex data type comprises a nested sub-data item, wherein obtaining the data entry comprises determining the value of the data entry based on the sub-data item, the value comprising a sub-data entry associated with the sub-data item.

### Claim 18 (depends on 17)

The device of claim 17, wherein obtaining the instance of the data object comprises:
obtaining a sub-instance of the sub-data object based on the sub-data entry; and
adding the sub-instance to the instance.

### Claim 19 (depends on 11)

The device of claim 11, wherein the first format is an object format and the second format is a string format, the mixed data is stored in a heap of a memory of a device for executing the application, and the method further comprises:
in response to receiving a second access request of a business logic of the application for the data item, obtaining a data entry corresponding to the data item based on a data object corresponding to the data item in the first data portion, the data entry being represented in the string format;
writing the data entry to the second portion; and
removing the data object from the first portion.

### Claim 20

A non-transitory computer readable storage medium on which a computer program is stored, the computer program, when executed by a processor, causes the processor to implement a method for managing data in an application, the method comprising:
receiving raw data in the application, the raw data comprising a definition of at least one data item; and
obtaining mixed data associated with the at least one data item, the mixed data comprising a first data portion in a first format and a second data portion in a second format,
wherein the first format comprises any one of a string format and an object format, the second format comprises the other one of the string format and the object format, and with regard to a data item in the at least one data item, the mixed data comprises the data item represented in the first format or the data item represented in the second format.
