Data reverse parsing method in iOS

An analysis method and data technology, applied in the field of iOS data analysis, can solve problems such as program crashes, and achieve the effects of unified process, high analysis accuracy, and good algorithm uniformity

Active Publication Date: 2018-05-08
BEIJING KUWO TECH
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0022] In a similar situation, when NULL data is returned, the program will crash

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
  • Data reverse parsing method in iOS

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0054] Such as figure 1 As shown, the data reverse analysis method in iOS described in the present invention comprises the following steps:

[0055] Step 1, receive the class to be converted;

[0056] Step 2, receiving the class object to be converted;

[0057] Step 3, perform reverse parsing processing on the class to obtain class parsing information;

[0058] Step 4, read the preset agreement;

[0059] If you do not want to analyze the information by class for subsequent processing, you need to give a preset agreement to indicate the subsequent analysis according to the agreement; the agreement contains the analysis rules;

[0060] Step 5: Generate a class analysis map according to the class analysis information and preset protocol; call the object data parser to obtain the key-value map;

[0061] Step 6, start parsing data.

[0062] On the basis of t...

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 relates to a data reverse parsing method in iOS. The method includes the steps of 1), receiving classes to be conversed; 2), receiving class objects to be converted; 3), subjecting the classes to reverse parsing to acquire class parsing information; 4), reading a preset protocol; 5), generating class parsing map according to the class parsing information and the preset protocol and calling an object data parser to acquire a key value map; 6), starting parsing the data. With the method, object data, classes, attributes, variables, object classes can be automatically parsed, algorithm unity is good, the process is unified, parsing accuracy is high, and the method is suitable for completing unified and standardized reverse parsing.

Description

technical field [0001] The invention relates to the technical field of iOS data parsing, in particular to a data reverse parsing method in iOS. Background technique [0002] In iOS development, data interaction (data transmission) between the client and the server is basically required, among which: [0003] The client acts as the foreground, and the server acts as the background. [0004] The client will send a request to the server, and at this time, the server will provide (return) the necessary data (response) to the client. [0005] Usually, the data obtained from the server is JSON data (JavaScript Object Notation). JSON data is a lightweight data-interchange format in a completely language-independent text format, and these features make it an ideal data-interchange language. [0006] JSON is constructed from two structures: [0007] 1. A collection of name / value pairs. In different languages, it is understood as object (object), record (record), structure (struc...

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
CPCG06F8/427
Inventor 邱扬
Owner BEIJING KUWO 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