fix empty array/object parsing