Re-write the Json number comparision to avoid the warnings.