Automatic program text converting method and device

A program text, automatic conversion technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of large differences in JSON format, cumbersome and other problems, to improve work efficiency, avoid manual conversion, and improve user experience. Effect

Inactive Publication Date: 2015-12-02
GUANGZHOU HUADUO NETWORK TECH
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The JSON format is quite different from the JavaBean format, and it is quite cumbersome to convert manually by the programmer himself.

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
  • Automatic program text converting method and device
  • Automatic program text converting method and device
  • Automatic program text converting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Before introducing the present invention, first introduce the situation of the prior art related to the present invention.

[0023] Java systems developed by programmers often need to call APIs of other systems. The return formats of these APIs are often in JSON format. In the Java system, the corresponding data format should be the JavaBean format. After the background programmer receives the data in JSON format returned by the above-mentioned API, the programmer usually manually converts the data in JSON format into data in JavaBean format, and saves the data in JavaBean format. The JSON format is quite different from the JavaBean format, and manual conversion by the programmer is quite cumbersome.

[0024] The present invention provides a method and device for automatically converting program text. The solution includes: receiving data input by a user in an input box that conforms to the first program text; analyzing and determining the structural characteristics o...

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 invention discloses an automatic program text converting method and device. The method includes the steps that data which conform to a first program text and are input by a user are received by an input box; the structural characteristic of the data which conform to the first program text and are input by the user are analyzed and determined; according to the structural characteristic of the data which conform to the first program text, data of the first program text are analyzed row by row; when analysis is successful, based on an analysis result, the data which conform to the first program text are converted into data of a preset second program text according to a template of the preset second program text; the converted data of the preset second program text are automatically displayed on the input box. By means of the mode, manual conversion can be avoided, the working efficiency of a programmer can be greatly improved, and user experience can be promoted.

Description

technical field [0001] The invention relates to the technical field of computer language, in particular to a method and device for automatically converting program text. Background technique [0002] Java systems developed by programmers often need to call application programming interfaces (Application Programming Interface, API) of other systems. The return formats of these APIs are often in JavaScript Object Notation (JavaScriptObjectNotation, JSON) format. [0003] In the Java system, the corresponding data format should be the JavaBean format. After the background programmer receives the data in JSON format returned by the above-mentioned API, the programmer usually manually converts the data in JSON format into data in JavaBean format, and saves the data in JavaBean format. [0004] The JSON format is quite different from the JavaBean format, and manual conversion by the programmer is quite cumbersome. Contents of the invention [0005] The technical problem mainl...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/22
Inventor 李泽扬
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products