JSONObject getDouble
The JSONObject interface has the method
getDouble():Double. The typeDoubleis however not present in WebDSL and conversion toFloatdoes 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
Floatand use JSONObject methodgetString():Stringfollowed byparseFloat(), eg:
json.getString(“reallyFloat”).parseFloat();
Log in to post comments