Current location - Quotes Website - Personality signature - Why are many web application APIs developed with json? What are its advantages and disadvantages compared with gsoap+webservice?
Why are many web application APIs developed with json? What are its advantages and disadvantages compared with gsoap+webservice?

JSON and soap+webservice are a data interaction format, and currently all platforms support them. JSON is a long string displayed in the form of key-value pairs, and the data interacted by webservice is mostly xml. In terms of readability and scalability, the two methods are comparable. JSON has a slight advantage in terms of convenience in coding, as it does not have as many tag pairs as XML. When the client uses json strings, it only needs eval(). The eval function is available in many languages, such as js, as, etc.

In terms of maintenance, I think it is more difficult to maintain an xml string than a json string