Click here to Skip to main content
14,484,790 members
Rate this:
Please Sign up or sign in to vote.
Hi All . I made a web Application 1 years a go and it works very well !
this application Shows Products and their details to customers .
now i want to develop my app and Use Smart phones(android) to read Data From web Application . i know how to Return Xml from Web app in android & i did that

If i want to Use Json ... ?!

I read and Realized if you want to Use json in android project , Your web application Should Supports Json.
For Example : Twitter Supports Json .
Does it mean "i have to change my Web app Structure " ?!

Am I right ? Or Its not True ?

and another Question : what would you recommend doing ?
i mean You can Simply Return Xml OR Use Json .

which one is better ?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Yes, you are right, of course. What to do? It's totally up to you.

Which one is better? "Better" is something undefined. This can be a predicate calculated depending on some conditions. However, from your post, is you formulated the problem, I cannot see any reason for using JSON except your "I want to use JSON". If this is the reason, it sounds like using JSON for the sake of using JSON. If this is really the point, it would look ridiculous to me, and then I would advise you to keep a working thing working.

I don't know all your circumstances though. Maybe you have some real reason. The change it. :-)

seyed mahmud shahrokni 5-Dec-14 4:37am
tnx . it was very useful .
My pleasure.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100