check that JSON.parse returned something