Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

BUT
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 ?
Posted

1 solution

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. :-)

—SA
 
Share this answer
 
Comments
seyed mahmud shahrokni 5-Dec-14 4:37am    
tnx . it was very useful .
Sergey Alexandrovich Kryukov 5-Dec-14 12:45pm    
My pleasure.
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900