RE: Serve Json in request and response

2011-05-05 Thread Mathias Nilsson
Thanks but this is not the problem. The problem is the Json server. I want to use Json as both query language and response language This doens't seem to be right for the query. How would you handle this. http://myspace.com/json?q={really.ong.nested.query} What is the proper way of sending

Re: Serve Json in request and response

2011-05-05 Thread Martin Grigorov
Send them with POST so they don't appear in the the url. Or encode them somehow and then ?json=encodedJson (e.g. base64) On Thu, May 5, 2011 at 2:44 PM, Mathias Nilsson wicket.program...@gmail.com wrote: Thanks but this is not the problem. The problem is the Json server. I want to use Json

RE: Serve Json in request and response

2011-05-04 Thread Hielke Hoeve
And another: http://jackson.codehaus.org/ (This library is also used in WiQuery) Hielke -Original Message- From: jcgarciam [mailto:jcgarc...@gmail.com] Sent: dinsdag 3 mei 2011 13:48 To: users@wicket.apache.org Subject: Re: Serve Json in request and response Just adding another json

Re: Serve Json in request and response

2011-05-03 Thread Maarten Billemont
On 03 May 2011, at 10:20, Wicket wrote: Hi, When serving json I have built a WebService that responds with json and takes json as request. @WebMethod @WebResult( name = JsonResponse ) public String onJsonRequest( @WebParam( name = JsonRequest ) String jsonRequest ); I was

Re: Serve Json in request and response

2011-05-03 Thread Mathias Nilsson
Ok, And if I should use a servlet. Where do I go from there? I can use dopost and doget but how to handle Json request? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492203.html Sent from the Users forum mailing list

RE: Serve Json in request and response

2011-05-03 Thread Wilhelmsen Tor Iver
I can use dopost and doget but how to handle Json request? JSON is just data representation, there are some Java libraries out there to deal with JSON formatted data (e.g. Jettison at http://jettison.codehaus.org/ or JSON.simple at http://code.google.com/p/json-simple/ ). But if you want to

Re: Serve Json in request and response

2011-05-03 Thread jcgarciam
Just adding another json library (http://code.google.com/p/google-gson/) As all saids, wicket brings nothing to the mix. Use a servlet+json library to parse the request. On Tue, May 3, 2011 at 8:22 AM, Wilhelmsen Tor Iver [via Apache Wicket] ml-node+3492239-1708321586-65...@n4.nabble.com wrote:

Re: Serve Json in request and response

2011-05-03 Thread robert.mcguinness
maybe this will help: http://code.google.com/p/wicket-rest/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492685.html Sent from the Users forum mailing list archive at Nabble.com.