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

Method and device for converting IOS data objects

A data object and conversion method technology, applied in the computer field, can solve the problems of reducing program development efficiency, troublesome maintenance, and difficult application maintenance

Inactive Publication Date: 2018-08-10
CRRC QINGDAO SIFANG CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides an IOS data object conversion method and device, which is used to solve the problem of maintenance troubles caused by too many calls in the user development process in the prior art, because once the name is wrong, the problem cannot be found during the compilation process , which will make the application difficult to maintain and reduce the efficiency of program development

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
  • Method and device for converting IOS data objects
  • Method and device for converting IOS data objects
  • Method and device for converting IOS data objects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0030] figure 1 It is a flow chart of the IOS data object conversion method of the embodiment of the present invention, figure 1 As shown, the method includes:

[0031] Step S01, receiving JSON data sent by the server, the JSON data includes at least one key value and a corresponding value.

[0032] According to the client's request, the server...

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 embodiment of the invention provides a method and a device for converting IOS data objects. The method comprises the following steps: receiving JSON data sent by a server, wherein the JSON data atleast comprises a key value and a corresponding numerical value; obtaining data objects according to a preset data object type, wherein the data objects at least comprise one attribute and a corresponding attribute value, and the attributes of the data objects are in one-to-one correspondence to the key values of the JSON data; and successively taking the numerical value of the key values corresponding to the attributes as attribute values of the attributes according to a method of traversing attributes in the data object type. Through the method and the device provided by the embodiment of the invention, the JSON data is converted into the data objects; the preset method of traversing attributes is used for rapidly and accurately assigning the numerical values in the JSON data to the attributes in the data objects.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, in particular to an IOS data object conversion method and device. Background technique [0002] With the rapid development of broadband wireless access technology and mobile terminal technology, more and more people begin to use smart phones and tablet computers to conveniently and quickly use mobile Internet services. There are more and more network programming applications in the development process of mobile applications, and the application of data is becoming more and more important in the development process. [0003] The existing data parsing is to parse the network data into data in NSDictionary format. When the data is called, it is directly called by the dictionary name string of the dictionary format data. In this way, it will cause maintenance troubles after calling too many during the development process. , because once the name is wrong, the problem cann...

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/20G06F8/30G06F8/41
CPCG06F8/24G06F8/315G06F8/44
Inventor 贺婷婷何彬郝伟王川牟琳李凯
Owner CRRC QINGDAO SIFANG CO LTD
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