improved json parsing when an object is missing