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

Method and device for converting Json data into dictionary data and electronic equipment

A dictionary data, data technology, applied in the computer field, can solve problems such as slow speed

Pending Publication Date: 2020-09-18
北京金山猎豹科技有限公司
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are LitJson, Json.Net, etc. in the game that can convert Json data into dictionary data. However, LitJson, Json.Net, etc. are relatively slow when converting Json data into dictionary data.

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 Json data into dictionary data and electronic equipment
  • Method and device for converting Json data into dictionary data and electronic equipment
  • Method and device for converting Json data into dictionary data and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0029]It should be clear that the described embodiments are only some of the embodiments of the present invention, not all of them. 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] In the first aspect, the embodiment of the present invention provides a method for converting Json data into dictionary data, which can increase the speed of converting Json data into dictionary data.

[0031] Such as figure 1 As shown, a method for converting Json data into dictionary data provided by the present invention may include:

[0032] Step 101, converting the data stored in the Json file into string data, wherein the string data is array data, the array data includes at least one object, and each of...

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 discloses a method and device for converting Json data into dictionary data and electronic equipment, relates to the technical field of computers, and can improve the speed of converting the Json data into the dictionary data. The method comprises the steps: converting data stored in a Json file into character string data, wherein the character string data are arraytype data; calling Unity Json to convert the character string data into a transition array, each array element in the transition array being in one-to-one correspondence with each object in the arraytype data; and converting the transition array into dictionary data, the dictionary data taking a field value corresponding to any field of the array element as an index value and taking a field value corresponding to at least one field of the array element as an attribute value corresponding to the index value. The method and the device are suitable for converting the Json data into the dictionary data in the game program.

Description

technical field [0001] The invention relates to computer technology, in particular to a method, device and electronic equipment for converting Json data into dictionary data. Background technique [0002] A large amount of data configuration is required in the game production project, such as Luban No. 7 in the glory of the king, what skills does it have, how much each skill value attacks, how much recovery time and so on. The configuration data of the game is often stored in Json format, and the configuration data is mostly used in the form of a dictionary in the game (for example, in the skill table, you can find all his skill data according to the keyword Luban No. 7). Therefore, when using these configuration data in the game, you need to convert the Json data into dictionary data first. [0003] At present, there are LitJson, Json.Net, etc. in the game that can convert Json data to dictionary data. However, LitJson, Json.Net, etc. are relatively slow when converting Js...

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): G06F16/25G06F16/22G06F40/157A63F13/77
CPCG06F16/258G06F16/22A63F13/77
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