updated json check methods