fix json callback method

Fix json callback is alway 1 or 0