Move outJson var outside of checkJson var