Json format data analytic method and data receiving end
A format data and analysis method technology, applied in the direction of electrical digital data processing, instruments, program control devices, etc., can solve the problem of not being able to correctly receive Json format data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0050] Enclosed by the outermost curly braces is the entire Json, and enclosed by square brackets is the value (value) of the name (key) people. In the square brackets, there are three relatively independent Json enclosed in braces. The Json in this format is JsonArray. Its unique format specifiers are square brackets and braces that appear multiple times. If the value (value) is enclosed by a pair of square brackets or multiple pairs of braces, it can be determined that it is a JsonArray.
[0051] JsonObject is Json, and JsonArray is used to represent Array and list.
[0052] Therefore, the determination of whether JsonArray is included in the Json format data is specifically:
[0053] Judging whether the Json format data contains the format: the first curly bracket group, the first bracket group located in the first bracket group, and the second bracket group located in the first bracket group string.
[0054] In step S103, it is first necessary to distinguish between Jso...
example 1
[0091] Enclosed by the outermost curly braces is the entire Json, and enclosed by square brackets is the value (value) of the name (key) people. In the square brackets, there are three relatively independent Json enclosed in braces. The Json in this format is JsonArray. Its unique format specifiers are square brackets and braces that appear multiple times. If the value (value) is enclosed by a pair of square brackets or multiple pairs of braces, it can be determined that it is a JsonArray.
[0092] JsonObject is Json, and JsonArray is used to represent Array and list.
[0093] Step S303: Distinguish between JsonArraykey and value:
[0094] JsonArray is a list (list) composed of JsonObject, and each element in the list follows the standard format of JsonObject. Using the characteristics of the JsonObject standard format, use the method of string analysis to distinguish the key and value of each element in the list.
[0095] JsonObject is a string with a special format, so al...
example 2
[0101] The name (key) and value (value) of JsonObject are enclosed by braces and separated by commas. JsonArray is essentially a special value (value) of JsonObject enclosed in square brackets. This value (value) is composed of JsonObject again. Therefore, first traverse the entire JsonObject to find the JsonArray through the square brackets, and take it out of the JsonObject, and then use the split method to obtain each pair of name (key) and value (value).
[0102] Step S304: Correspondence between JsonArraykey and value:
[0103] Use the string parsing method to complete the one-to-one correspondence between key and value according to the key and value correspondence rules in the JsonObject standard format. As can be seen from the example in (Example 2), JsonArray is actually a name (key) / value (value) pair with a special value (value) in JsonObject. Value (value) is composed of standard JsonObject. Each pair of name (key) and value (value) can be obtained with the spli...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com