Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Thomas Broyer
On Wednesday, July 18, 2012 6:47:37 PM UTC+2, MAQ wrote: > > I did look at that project, however it does not include youtube API. > So, if I had to integrate the youtube API with my GWT app, then my best > option would be the JSON path? > Actually rather wrap the JS API. (this is what gwt-googl

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread MAQ
I did look at that project, however it does not include youtube API. So, if I had to integrate the youtube API with my GWT app, then my best option would be the JSON path? On Thursday, July 19, 2012 2:39:44 AM UTC+10, Thomas Broyer wrote: > > > On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wr

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Thomas Broyer
On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote: > > Hi, > > I hope the question is clear, I'm a total GWT newbie. My project requires > the use of some of Google's APIs. Two main solutions are provided one for > XML and another for JSON (gdata-java-client and google-api-java-client). >

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Richard
It's likely json will be processed more quickly on the client since it can be done natively, although it does depend on your use case. And json is usually smaller. http://en.wikipedia.org/wiki/JSON#Native_encoding_and_decoding_in_browsers http://stackoverflow.com/questions/4596465/is-parsing-jso

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Ümit Seren
I would go with JSON. It's more compact than XML and seems to become more and more the defacto standard for data communication in the web. On Wednesday, July 18, 2012 7:18:42 AM UTC+2, MAQ wrote: > > Sorry, I meant 2 options provided by Google APIs. > > On Wednesday, July 18, 2012 2:50:51 PM U

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-17 Thread MAQ
Sorry, I meant 2 options provided by Google APIs. On Wednesday, July 18, 2012 2:50:51 PM UTC+10, Robert W wrote: > > I don't understant in what context you use "solution" word but generally > json is standard for api use, with gwt overlays mechanism it easy to use in > java typing model. > > On

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-17 Thread Robert W
I don't understant in what context you use "solution" word but generally json is standard for api use, with gwt overlays mechanism it easy to use in java typing model. On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote: > > Hi, > > I hope the question is clear, I'm a total GWT newbie. My pr

When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-17 Thread MAQ
Hi, I hope the question is clear, I'm a total GWT newbie. My project requires the use of some of Google's APIs. Two main solutions are provided one for XML and another for JSON (gdata-java-client and google-api-java-client). Which one would be more suitable (easier, more compatible etc.)? Or is