java - How to read JSON object from URL query string -


i have url request this:

http://localhost:8080:_dc=1367504213107&filter[0][field]=site&filter[0][data][type]=string&filter[0][data][value]=test&filter[1][field]=address&filter[1][data][type]=string&filter[1][data][value]=columbus 

this url request browser.

from url, i need filter related data json object.

basically have filter parameters these in requested url:

filter[0][field]=site filter[0][data][type]=string filter[0][data][value]=test filter[1][field]=address filter[1][data][type]=string filter[1][data][value]=columbus 

i using spring mvc framework.

those url parameters aren't in json format. i'm not sure question / problem here... can't read in each of parameters url , parse data out of strings need? take single parameter , tokenize based on custom character, or loop through parameters , parse each 1 , add them array.

are saying need return data in json format? data using parsed parameters described above, when have data merely serialize object , pass on wire body of response. you'll want use json serialization library jackson write object string in json you.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -