Check this code for GadgetDataServlet.php line ~80

            error_log('JSON: '. print_r($requestParam, true));
            $requests = json_decode($requestParam, true);
            error_log('DECODED: '. print_r($requests, true));

where  $requestParam = isset($_POST['request']) ? $_POST['request'] : '';

and check the result!

seeams that is* typing the Fields!*

Doubles and ints are NOT treated as strings!!!

so we have different floating points and ints overflow! grrrrrrrr

ideas?


 JSON:
[{"type":"UPDATE_PERSON_APP_DATA","idSpec":"VIEWER","key":"AppField1","value":
*3.410306969554683*},
 {"type":"UPDATE_PERSON_APP_DATA","idSpec":"VIEWER","key":"AppField2","value"
*:22.72713329258661*},
 {"type":"UPDATE_PERSON_APP_DATA","idSpec":"VIEWER","key":"AppField3","value":
*1212801019364*}]

DECODED: Array
(
    [0] => Array
        (
            [type] => UPDATE_PERSON_APP_DATA
            [idSpec] => VIEWER
            [key] => AppField1
            [value] =>* 3.4103069695547*
        )

    [1] => Array
        (
            [type] => UPDATE_PERSON_APP_DATA
            [idSpec] => VIEWER
        [key] => AppField2
            [value] => *22.727133292587*
        )

    [2] => Array
        (
            [type] => UPDATE_PERSON_APP_DATA
            [idSpec] => VIEWER
            [key] => AppField3
            [value] => *2147483647*
        )

)





-- 
.-. --- .--. ..-
R o p u

Reply via email to