Method and device for message format conversion, storage medium and android terminal
A technology of message format and conversion method, which is applied in the fields of Android terminals, devices, storage media, and message format conversion methods, and can solve the problems that data in Json format cannot be converted 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
[0039] 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.
[0040] Such as figure 1 As shown, the conversion method of the message format includes:
[0041] S110. When receiving the Json data to be converted, convert the Json data into an InfoBean object.
[0042] Wherein, the Json data can be acquired through a network connection, and after the Json data is acquired, the Json data can be converted into an InfoBean object through a preset method.
[0043] In this embodiment, optionally, when receiving the Json data to be converted, converting the Json data into an InfoBean object...
Embodiment 2
[0059] figure 2 is a schematic structural diagram of the device for converting message formats provided in Embodiment 2 of the present invention. Such as figure 2 As shown, the conversion device of the message format includes:
[0060] InfoBean object conversion module 210, when being used for receiving the Json data to be converted, Json data is converted into InfoBean object;
[0061] The key-value pair information storage module 220 is used to obtain the corresponding relationship between key information and value information in the key-value pair information in the InfoBean object, and then store the value information in the key-value pair information in the In the field corresponding to the key information;
[0062] The barrage message data acquisition module 230 is used to acquire and call the key information character string and the value information character string in the InfoBean object, and splicing them in a preset format to obtain barrage message data.
[00...
Embodiment 3
[0066] The embodiment of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to perform a message format conversion method when executed by a computer processor, and the method includes:
[0067] When receiving the Json data to be converted, convert the Json data into an InfoBean object;
[0068] Obtain the corresponding relationship between key information and value information in the key-value pair information in the InfoBean object, and then store the value information in the key-value pair information in the field corresponding to the key information according to the corresponding relationship;
[0069] The key information string and the value information string in the InfoBean object are acquired and called, and spliced in a preset format to obtain the barrage message data.
[0070] storage medium - any of various types of memory devices or storage devices. The term "storage m...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


