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

Message format conversion method, device, storage medium and android terminal

A technology of message format and conversion method, applied in image communication, selective content distribution, electrical components, etc., can solve the problem of converting data in Json format into another type of data, etc.

Active Publication Date: 2018-12-14
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, data transmission is usually in Json format. In traditional solutions, data in Json format is usually parsed into an object, and data in Json format cannot be converted into another type of data, or a specific barrage protocol.

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
  • Message format conversion method, device, storage medium and android terminal
  • Message format conversion method, device, storage medium and android terminal
  • Message format conversion method, device, storage medium and android terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] figure 1 It is a flow chart of the message format conversion method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of message format conversion, and the method can be executed by the message format conversion device provided in the embodiment of the present invention. The device can be composed of It can be implemented by means of software and / or hardware, and can be integrated into an Android terminal.

[0044] Such as figure 1 As shown, the conversion method of the message format includes:

[0045] S110. When the Json data is obtained, verify the jsonStr, and obtain at least one key-value pair information during the verification process.

[0046] Among them, the Json data can be obtained in the form of a network connection. After obtaining the Json data, jsonStr needs to be verified. The advantage of this setting is that if the received Json data is found to be illegal during the verification process, you can directly C...

Embodiment 2

[0058] This embodiment is a preferred embodiment provided on the basis of the above-mentioned embodiments. In order to allow those skilled in the art to understand the technical solution provided by this application more clearly, this preferred embodiment is as follows:

[0059] Through the implementation of this solution, data in Json format can be quickly converted into protocol data in barrage format, and the conversion process can realize parsing and conversion at the same time to achieve the purpose of improving conversion efficiency.

[0060] This program will mainly focus on the following aspects to expand and explain

[0061] 1. Validation of Json data.

[0062] Second, the data conversion process.

[0063] Next, the implementation method and implementation process of the above steps will be described in detail:

[0064] 1. Validation of Json data

[0065] This step mainly describes the verification method of Json data. Through the implementation of this step, it ca...

Embodiment 3

[0089] figure 2 is a schematic structural diagram of the device for converting message formats provided by Embodiment 3 of the present invention. Such as figure 2 As shown, the conversion device of the message format includes:

[0090] The key-value pair information acquisition module 210 is used to verify jsonStr when the Json data is obtained, and obtain at least one key-value pair information during the verification process;

[0091] The bullet chat message format splicing module 220 is configured to splice the at least one key-value pair information according to the bullet chat message format to obtain the bullet chat message format.

[0092] In the technical solution provided by the embodiment of the present application, when the Json data is obtained, the jsonStr is verified, and during the verification process, at least one key-value pair information is obtained; The message format is spliced ​​to obtain the barrage message format. By adopting the technical soluti...

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 message format conversion method, a device, a storage medium and an Android terminal. The method comprises the following steps: when obtaining the Json data, checking the jsonStr, and obtaining at least one key-value pair information in the checking process; At least one key value pair information is splice according to a barrage message format to obtaina barrage message format. By adopting the technical scheme provided by the application, the format of the Json format can be converted into a barrage message format, and the effect of displaying thereceived data in the Json format quickly by the barrage message can be realized.

Description

technical field [0001] The embodiment of the present invention relates to the field of Android technology, and in particular to a message format conversion method, device, storage medium and Android terminal. Background technique [0002] With the rapid development of the Internet today, the needs of network users are changing rapidly and greatly, and the transmission and conversion efficiency of data messages has become one of the most concerned issues in the field. [0003] At present, data transmission is usually in Json format. In traditional solutions, data in Json format is usually parsed into an object, and data in Json format cannot be converted into another type of data, or a specific barrage protocol. Bullet screen messages are currently what users are interested in watching online videos, online live broadcasts, and other video programs, so how to realize conversion while analyzing has become a technical problem that technicians urgently need to break through. C...

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
IPC IPC(8): H04N21/488H04N21/4788H04N21/435
CPCH04N21/435H04N21/4788H04N21/488
Inventor 张磊张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD