I have some function where I receive such JSON:
String sorting ->>  {"state":"desc"}
String filter  ->> {"clientID":"XML"}
All value within are always different. How can I get Key and Value for such JSON? 
Lets say :
KEYsorting =state , Valuesorting  = desc 
KEYfilter =clientID, Valuefilter  = XML
I have searched a lot - including this website - but couldn't dealt with it. I guess it is not very difficult I I wasn't able to do that. Please help
 
    