A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Help with deserializing JSON to Grails
Hugo Alberto Bedolla
Joined: Nov 09, 2010
Apr 02, 2013 09:36:26
Having a problem when readin a JSON object into my controller.
basically I get this output:
[application[prospect][contact]:kkkk, application[prospect][SSN]:ABC123456AB0, application[applicationDate]:Tue Apr 02 2013 09:22:06 GMT-0600, application[prospect][name]:ANAMEHERE, application[prospect][address]:The Address, action:saveApplication, controller:screenApplication]
So I know there is the object.
When trying to access my object using:
When trying to access any of its properties in this way:
When trying to "deserialize" using
def jsonobject = new JSONObject(JSON.parse(params["application"]))
What am I doing wrong when accesing the parameters?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Help with deserializing JSON to Grails
Obtaining JSON object using params in grails REST
paramsPrepareParams OgnlException setProperty()
How to get url
struts2 (18.104.22.168) json result type problems
My AJAX Chained Selector Function (Enjoy!)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014