Data conversion method and device and storage medium
A conversion method and data technology, applied in the computer field, can solve problems such as data conversion schemes prone to loopholes, and achieve the effect of accurate format conversion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0033] Currently, JSON data has gradually replaced XML as the mainstream data exchange and storage format. In the process of data interaction, the problem of inconsistent data format is often encountered. In the xml era, XSLT can realize it. In the JSON era, in order to convert data read from multiple data sources into a unified standard format in a Java program, there are currently several methods:
[0034] Java entity class mapping: JSON->java input entity class->java output entity class->JSON.
[0035] With XSLT: JSON->XML->XSLT->XML->JSON.
[0036] Write a template (Velocity, FreeMarker, etc.), deserialize the input JSON text into a java entity class, and use the template to render the output as JSON text.
[0037] Several conversion methods of related technologies are either lack of standardization, or the conversion process is cumbersome, prone to problems or loopholes, which affects the robustness of the program and is not conducive to maintenance.
[0038] In view o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


