Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A matching method for automatically analyzing request parameters

A technology for requesting parameters and matching methods, applied in the field of data analysis, to achieve the effects of improving description accuracy, reducing development errors, reducing development efficiency, and reducing deviations

Inactive Publication Date: 2019-05-17
卓集送信息科技(武汉)有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the popularity of the Internet and the Internet of Things, there are more and more interactive systems based on http and https protocols, and the amount of data interaction is also increasing. Using JSON format for data transmission has become a common phenomenon, while traditional The Java parsing method is to parse JSON data into a JSON object. Even if the SpringMVC framework is used, the JSON data in the entire RequestBody can only be parsed into a Java object. There is no way to parse JSON data like a traditional key. Each data item corresponds to the input parameter as the value is passed to the parameter; for this reason, we propose a matching method that automatically parses the request parameters

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
  • A matching method for automatically analyzing request parameters
  • A matching method for automatically analyzing request parameters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0017] see figure 1 , the present invention provides a technical solution: a matching method for automatically parsing request parameters, comprising the following steps:

[0018] S1: Create an annotation identifier: JsonParam, which is used to identify the parameter name that needs to be matched with JSON data;

[0019] S2: Create a parsing module that implements parsing and matching of the original JSON data. The implementation steps of the parsing module a...

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 a matching method for automatically analyzing request parameters. The matching method comprises the following steps of creating an annotation identifier, creating an analysis module and processing JSON parameters; in order to improve the development efficiency and accuracy, analyzing a whole introduced JSON string into a plurality of input parameters according to the number, names and the types of the development receiving parameters, matching the input parameters a with the input parameters established through development, and assigning automatically, so that the characteristic that the input parameters of the method are clear is reserved, the description accuracy of the method is improved, and therefore development errors and development efficiency reduction caused by the fact that actual parameter items in an input parameter object are not known in development are reduced. Moreover, the method avoids the situations that JavaBean corresponding to various typesis compiled for analyzing data corresponding to JSON, the amount of compiled codes and unnecessary class definitions are reduced, and the memory space is occupied, so that a data receiver can know the number and meaning of the received parameters more clearly, the understanding deviation is reduced, and the code accuracy and the readability are improved.

Description

technical field [0001] The invention relates to the technical field of data parsing, in particular to a matching method for automatically parsing request parameters. Background technique [0002] With the popularity of the Internet and the Internet of Things, there are more and more interactive systems based on http and https protocols, and the amount of data interaction is also increasing. Using JSON format for data transmission has become a common phenomenon, while traditional The Java parsing method is to parse JSON data into a JSON object. Even if the SpringMVC framework is used, the JSON data in the entire RequestBody can only be parsed into a Java object. There is no way to parse JSON data like a traditional key. Correspond each data item with an input parameter as the value is passed to the parameter; for this reason, we propose a matching method that automatically parses the request parameters. Contents of the invention [0003] The purpose of the present inventio...

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): G06F8/41
Inventor 袁源
Owner 卓集送信息科技(武汉)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products