JSONObject getDouble
The JSONObject interface has the method
getDouble():Double
. The typeDouble
is however not present in WebDSL and conversion toFloat
does not exist.We should probably provide our own wrapper for JSONObject which declares
Submitted by Vlad Vergu on 13 May 2012 at 17:14getFloat():Float
.
Issue Log
On 18 February 2013 at 23:29 Oscar Castañeda commented:
An idea for a workaround is to declare Entity attributes as
Float
and use JSONObject methodgetString():String
followed byparseFloat()
, eg:
json.getString(“reallyFloat”).parseFloat();
Log in to post comments