Better checking for long on OS X for JSON