Created by: adameste
Fix cpp-restsdk double and float parse.
double.NaN was parsed when server doesn't ensure the floating point value has decimal point in in.
Fixed incorrect server response json parsing. For example the following json:
{
"double_value": 42
}
As of now, the value 42 is parsed as NaN, because json library returns false on is_double(). Additional condition ensures NaN is not returned when not needed. Implemented for both float & double data types.