CN104135536A - Data interaction method of Web management system based on Json data protocols - Google Patents

Data interaction method of Web management system based on Json data protocols Download PDF

Info

Publication number
CN104135536A
CN104135536A CN201410401997.1A CN201410401997A CN104135536A CN 104135536 A CN104135536 A CN 104135536A CN 201410401997 A CN201410401997 A CN 201410401997A CN 104135536 A CN104135536 A CN 104135536A
Authority
CN
China
Prior art keywords
data
json
information sending
sending request
web
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410401997.1A
Other languages
Chinese (zh)
Inventor
魏志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410401997.1A priority Critical patent/CN104135536A/en
Publication of CN104135536A publication Critical patent/CN104135536A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data interaction method of a Web management system based on Json data protocols. The data interaction method comprises the steps that a Web information sending request is received, wherein the Web information sending request comprises target data needing to be sent; according to the Web information sending request, Json format assembling is carried out; according to the Json data protocols, assembled request information is packaged; according to the Web information sending request, packaged data are sent to a background through Ajax data protocols and the Json data protocols; the background analyzes and processes the Json data according to the Web information sending request; according to results obtained by analyzing and processing the Json data, the background returns the processing results of the Json data. According to the method, the data can be processed and exchanged between a client and the background of the Web management system efficiently and rapidly, and the performance of the Web management system and customer experience can be improved.

Description

A kind of web administration system data exchange method based on json data protocol
Technical field
The present invention relates to a kind of Computer Applied Technology field, specifically a kind of web administration system data exchange method based on json data protocol.
Background technology
Json has become the implementation criteria of HTML5 application internal exchange of data, is convenient to people and reads and write, and is also easy to machine simultaneously and resolves and generate.Json can be converted to character string by the one group of data representing in JavaScript object, then just can between function, transmit like a cork this character string, or in asynchronous application by character string from Web client transfers to server.JavaScript is easy to explain it, and Json can represent than " name/value " more complicated structure.For example, can represent array and complicated object, and be not only the simple list of key and value.
Ajax submits to data relatively more efficient with original form submission of sheet, and original form submission of sheet is hidden form, after more new data completes, need to forward a blank page to and the more former page be submitted to reprocessing; Ajax need not, can directly return to the processing after the former page is submitted to.Visible Ajax can submit to reduce than hiding form and add a page.
Summary of the invention
The object of this invention is to provide a kind of web administration system data exchange method based on json data protocol.
The object of the invention is to realize in the following manner, use Ajax asynchronous transmission technology, Json form transmission for data acquisition, processes Ajax request with unified interface, content comprises: receive Web information sending request, Web information sending request comprises the target data that needs send; Carry out the assembling of Json form according to Web information sending request; According to Json data protocol, the solicited message assembling is encapsulated; Send encapsulation of data by Ajax, Json data protocol to backstage according to Web information sending request; Json data are resolved and are processed on backstage according to Web information sending request; The result of Json data is returned on backstage according to the result of resolving and process Json data; Concrete exchange step is as follows:
(1) in web administration system users end subscriber input request data;
(2) assemble the array data that meets Json form, for example { " name ": " lilei with the form of " name/value " ", " time ": " 10:29 ", " age ": " 30 ";
(3) Json encapsulation, according to selecting keyword key assignments to be assembled into array with the processing function of backstage agreement, then by being converted into Json form, Json is now the viewdata in client in, in data submission process, more easily check mistake, be convenient to exploitation and debugging;
(4) asynchronous transmission of Json data is processed Json data to the processing engine of server end, judged the operation response of its requirement according to resolving its keyword key assignments, carry out the calling of processing procedure, and finally return;
(5) result is Json form, and mark has status keyword, and client judges response results according to this state, needs the data of upgrading also can in Json, return as foreground has simultaneously, is received data and is shown in client by the call back function of Ajax.
Object beneficial effect of the present invention is: the web administration system data exchange method that the present invention is based on Ajax, Json data protocol can make to process efficiently, efficiently and swap data between the client of web administration system and backstage, improves performance and the customer experience of web administration system.
Brief description of the drawings
Fig. 1 is the structural representation of the web administration system data exchange method based on Ajax, Json data protocol.
Embodiment
Be described in detail below of the present invention with reference to Figure of description.
A kind of web administration system data exchange method based on json data protocol of the present invention, content comprises: receive Web information sending request, Web information sending request comprises the target data that needs send; Carry out the assembling of Json form according to Web information sending request; According to Json data protocol, the solicited message assembling is encapsulated; Send encapsulation of data by Ajax, Json data protocol to backstage according to Web information sending request; Json data are resolved and are processed on backstage according to Web information sending request; The result of Json data is returned on backstage according to the result of resolving and process Json data;
Embodiment:
Concrete implementation step is as follows:
(1) in web administration system users end subscriber input request data;
(2) assemble the array data that meets Json form, for example { " name ": " lilei with the form of " name/value " ", " time ": " 10:29 ", " age ": " 30 ";
(3) Json encapsulation, according to selecting keyword key assignments to be assembled into array with the processing function of backstage agreement, then by being converted into Json form.Json is now the viewdata in client in, in data submission process, more easily checks mistake, is convenient to exploitation and debugging;
(4) asynchronous transmission of Json data is processed Json data to the processing engine of server end, judged the operation response of its requirement according to resolving its keyword key assignments, carry out the calling of processing procedure, and finally return;
(5) result is Json form, and mark has status keyword, and client can judge response results according to this state.Need the data of upgrading also can in Json, return as foreground has simultaneously, receive data and show in client by the call back function of Ajax.
Except the technical characterictic described in specification, be the known technology of those skilled in the art.

Claims (1)

1. the web administration system data exchange method based on json data protocol, it is characterized in that using Ajax asynchronous transmission technology, Json form transmission for data acquisition, process Ajax request with unified interface, content comprises: receive Web information sending request, Web information sending request comprises the target data that needs send; Carry out the assembling of Json form according to Web information sending request; According to Json data protocol, the solicited message assembling is encapsulated; Send encapsulation of data by Ajax, Json data protocol to backstage according to Web information sending request; Json data are resolved and are processed on backstage according to Web information sending request; The result of Json data is returned on backstage according to the result of resolving and process Json data; Concrete exchange step is as follows:
(1) in web administration system users end subscriber input request data;
(2) assemble the array data that meets Json form, for example { " name ": " lilei with the form of " name/value " ", " time ": " 10:29 ", " age ": " 30 ";
(3) Json encapsulation, according to selecting keyword key assignments to be assembled into array with the processing function of backstage agreement, then by being converted into Json form, Json is now the viewdata in client in, in data submission process, more easily check mistake, be convenient to exploitation and debugging;
(4) asynchronous transmission of Json data is processed Json data to the processing engine of server end, judged the operation response of its requirement according to resolving its keyword key assignments, carry out the calling of processing procedure, and finally return;
(5) result is Json form, and mark has status keyword, and client judges response results according to this state, needs the data of upgrading also can in Json, return as foreground has simultaneously, is received data and is shown in client by the call back function of Ajax.
CN201410401997.1A 2014-08-15 2014-08-15 Data interaction method of Web management system based on Json data protocols Pending CN104135536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410401997.1A CN104135536A (en) 2014-08-15 2014-08-15 Data interaction method of Web management system based on Json data protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410401997.1A CN104135536A (en) 2014-08-15 2014-08-15 Data interaction method of Web management system based on Json data protocols

Publications (1)

Publication Number Publication Date
CN104135536A true CN104135536A (en) 2014-11-05

Family

ID=51808058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410401997.1A Pending CN104135536A (en) 2014-08-15 2014-08-15 Data interaction method of Web management system based on Json data protocols

Country Status (1)

Country Link
CN (1) CN104135536A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933487A (en) * 2015-06-26 2015-09-23 南京邮电大学 Medicine retrospective application oriented medicine inquiry optimization method
CN104994122A (en) * 2015-05-12 2015-10-21 深圳市微阳信息技术有限公司 Business communication method and system based on JSON data protocol
CN106302349A (en) * 2015-05-29 2017-01-04 北京京东尚科信息技术有限公司 Method and device analyzed by HTTP bag based on libpcap
CN106992870A (en) * 2017-03-31 2017-07-28 苏州乐麟无线信息科技有限公司 Compatible charging method based on json
CN107222543A (en) * 2017-06-14 2017-09-29 北京掌上时惠科技有限公司 A kind of mobile APP and the Web page means of communication and system
CN107634979A (en) * 2016-07-19 2018-01-26 北京发那科机电有限公司 A kind of transmission method and device of computer digital control machine tool data
CN107769909A (en) * 2017-09-29 2018-03-06 四川长虹电器股份有限公司 The method that a kind of front end data of Egret engines sends processing
CN108717382A (en) * 2018-05-11 2018-10-30 北京奇虎科技有限公司 Audio-video document processing method, device and terminal device based on JSON structures
CN114040018A (en) * 2021-10-11 2022-02-11 许昌许继软件技术有限公司 Data receiving and transmitting method and device based on JSON data format
CN115002935A (en) * 2022-08-03 2022-09-02 深圳市亿联无限科技有限公司 Method and system for realizing interaction between router and mobile phone APP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442515A (en) * 2007-11-22 2009-05-27 深圳市科陆电子科技股份有限公司 Remote control method based on browser
CN101694618A (en) * 2009-09-01 2010-04-14 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN103645951A (en) * 2013-12-19 2014-03-19 北京邮电大学 Cross-platform mobile data management system and method
CN103677789A (en) * 2012-09-25 2014-03-26 深圳市金正方科技有限公司 Table data displaying method and system based on GRID assembly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442515A (en) * 2007-11-22 2009-05-27 深圳市科陆电子科技股份有限公司 Remote control method based on browser
CN101694618A (en) * 2009-09-01 2010-04-14 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN103677789A (en) * 2012-09-25 2014-03-26 深圳市金正方科技有限公司 Table data displaying method and system based on GRID assembly
CN103645951A (en) * 2013-12-19 2014-03-19 北京邮电大学 Cross-platform mobile data management system and method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994122B (en) * 2015-05-12 2019-02-19 深圳市微阳信息技术有限公司 A kind of newsletter method based on JSON data protocol
CN104994122A (en) * 2015-05-12 2015-10-21 深圳市微阳信息技术有限公司 Business communication method and system based on JSON data protocol
CN106302349A (en) * 2015-05-29 2017-01-04 北京京东尚科信息技术有限公司 Method and device analyzed by HTTP bag based on libpcap
CN106302349B (en) * 2015-05-29 2020-06-05 北京京东尚科信息技术有限公司 HTTP packet analysis method and device based on libpcap
CN104933487A (en) * 2015-06-26 2015-09-23 南京邮电大学 Medicine retrospective application oriented medicine inquiry optimization method
CN107634979A (en) * 2016-07-19 2018-01-26 北京发那科机电有限公司 A kind of transmission method and device of computer digital control machine tool data
CN106992870A (en) * 2017-03-31 2017-07-28 苏州乐麟无线信息科技有限公司 Compatible charging method based on json
CN107222543B (en) * 2017-06-14 2020-06-05 北京掌上时惠科技有限公司 Mobile APP and Web page communication method and system
CN107222543A (en) * 2017-06-14 2017-09-29 北京掌上时惠科技有限公司 A kind of mobile APP and the Web page means of communication and system
CN107769909A (en) * 2017-09-29 2018-03-06 四川长虹电器股份有限公司 The method that a kind of front end data of Egret engines sends processing
CN108717382A (en) * 2018-05-11 2018-10-30 北京奇虎科技有限公司 Audio-video document processing method, device and terminal device based on JSON structures
CN108717382B (en) * 2018-05-11 2021-07-13 北京奇虎科技有限公司 JSON structure-based audio and video file processing method and device and terminal equipment
CN114040018A (en) * 2021-10-11 2022-02-11 许昌许继软件技术有限公司 Data receiving and transmitting method and device based on JSON data format
CN115002935A (en) * 2022-08-03 2022-09-02 深圳市亿联无限科技有限公司 Method and system for realizing interaction between router and mobile phone APP
CN115002935B (en) * 2022-08-03 2023-05-09 深圳市亿联无限科技有限公司 Method and system for realizing interaction between router and mobile phone APP

Similar Documents

Publication Publication Date Title
CN104135536A (en) Data interaction method of Web management system based on Json data protocols
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US10834031B2 (en) Information exchange method, client, and apparatus
CN102137126B (en) System and method for updating web data
US10218775B2 (en) Methods for servicing web service requests using parallel agile web services and devices thereof
EP3131303B1 (en) Method and device for transmitting data in intelligent terminal to television terminal
CN103179133A (en) Communication method between client side and server based on entity class
CN108124007A (en) The method and apparatus of message data real-time Transmission
CN111176627A (en) Device and method for separating front end from back end based on micro-service
CN109885347B (en) Method, device, terminal, system and storage medium for acquiring configuration data
WO2017059727A1 (en) Self-adaptive data display method, terminal device and server
CN105068801A (en) Method and system for modifying json date format
CN103997482A (en) Method of user registration in desktop cloud service, and system
AU2016101498B4 (en) Data Interchange System
KR20220061926A (en) Method and apparatus for switching skin of mini-program page, and electronic device
CN107454456B (en) Management control method and system for floating layer elements
CN103473105A (en) Realizing method of online code completion function
CN105354269B (en) Web applicational language Localization methodologies and system based on reverse proxy and information filtering
CN106293714A (en) A kind of method of improvement ajax performance based on data Layer
CN107426146A (en) User sends the system and method for displaying present banner after present in live application
CN107665148A (en) A kind of name pipeline Way of Process Communication based on Chromium
CN105338104A (en) Business request responding method, analysis method and analysis system
CN104468645A (en) Control method, electronic equipment, and information transmission method and device
CN105279154A (en) Query method and device for instant messages
WO2013097721A1 (en) Method and system for replying to website update event

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141105

WD01 Invention patent application deemed withdrawn after publication