Fixed JSON_NUMERIC_CHECK

This problem caused grids to break in some servers running 5.3 below