branch if parent if JSONArray inside Container.write