Siva
Siva

Reputation: 1858

Which one is faster to parse data Json or XML in web services?

Previously I used XML soap for data exchange in my web services, But it taking so much time to display data.

In what case would you need to use XML or json for web service response?

Upvotes: 3

Views: 1089

Answers (4)

Mano
Mano

Reputation: 740

Definitely use JSON web service.. You'll find its significance over SOAP web service once you use it..

Upvotes: 1

Nayan
Nayan

Reputation: 3014

JSON is always faster than XML.

You should go through this link for more information.

Upvotes: 0

IronManGill
IronManGill

Reputation: 7226

JSON is a far better web response service than XML.

Upvotes: 2

Dominik Hadl
Dominik Hadl

Reputation: 3619

Definitely JSON. Try this library - https://github.com/johnezang/JSONKit

Also, this is probably a duplicate of Is parsing JSON faster than parsing XML .

Upvotes: 4

Related Questions