JSON character string comparison method and device, equipment and storage medium
A string and comparison result technology, applied in the field of data processing, can solve the problems of wrong comparison results, time-consuming, and low accuracy of comparison results, and achieve the effect of reducing time loss and improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] figure 1 It is a flowchart of a method for comparing JSON strings provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of receiving multiple JSON strings sent by a client and comparing the multiple JSON strings. The method can be performed by a JSON character string comparison device, which can be implemented by software and / or hardware, and generally can be integrated in a unified server, and the unified server can communicate with the client, and the method specifically Including the following steps:
[0039] Step 110, according to the at least two JSON strings to be compared sent by the client, use the message digest algorithm MD5 to calculate the MD5 value of each JSON string.
[0040] In this step, after the user inputs at least two character strings to be compared in any format on the client, the client sends the at least two character strings to be compared to the server, and the server verifies the at least two chara...
Embodiment 2
[0058] Figure 2a It is a flow chart of a method for comparing JSON strings provided by Embodiment 2 of the present invention. This embodiment is applicable to sending multiple character strings to be compared input by the user to the server, receiving the comparison result sent by the server, and comparing the In the case of displaying results, the method can be executed by a JSON string comparison device, which can be implemented by software and / or hardware, and generally can be integrated in a client, and the client can communicate with the server, Described method specifically comprises the steps:
[0059] Step 210, receiving at least two character strings to be compared input by the user, and sending the at least two character strings to be compared to the server.
[0060] In a specific embodiment, the user can use the web interface (such as Figure 2b Enter at least two character strings to be compared in the input box above the submit button), then click the submit bu...
Embodiment 3
[0066] image 3 A structural diagram of a JSON character string comparison device provided in Embodiment 3 of the present invention, the device is applied to a server, and includes: MD5 value calculation module 310, key-value pair arrangement module 320, key-value pair comparison module 330 and comparison result feedback Module 340.
[0067] Wherein, the MD5 value calculation module 310 is used to calculate the MD5 value of each JSON string using the message digest algorithm MD5 according to at least two JSON strings to be compared sent by the client; the key-value pair arrangement module 320 is used to When there are at least two target JSON strings with inconsistent MD5 values, the key-value pairs in each of the target JSON strings are arranged in a preset order; the key-value pair comparison module 330 is used to Arrangement order, compare the key-value pair difference between two target JSON character strings respectively, and generate the key-value pair difference compar...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



