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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


