3

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?

Nayan
  • 3,014
  • 2
  • 17
  • 33
Siva
  • 1,848
  • 2
  • 23
  • 40

4 Answers4

4

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

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

Community
  • 1
  • 1
Dominik Hadl
  • 3,609
  • 3
  • 24
  • 58
2

JSON is a far better web response service than XML.

IronManGill
  • 7,222
  • 2
  • 31
  • 52
1

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

Mano
  • 670
  • 1
  • 9
  • 28
0

JSON is always faster than XML.

You should go through this link for more information.

Nayan
  • 3,014
  • 2
  • 17
  • 33