public static List<JSONObject> constructRokuNativeElements(JSONObject elementObj) {
		List<JSONObject> elements = new ArrayList<>();
		JSONArray valueArr = (JSONArray) elementObj.get("value");
		if (valueArr == null) {
			return elements;
		}
		for (int i = 0; i < valueArr.size(); i++) {
			String[] boundsComponents = { "0", "0", "0", "0" };
			String text = "";
			JSONObject valueObj = (JSONObject) valueArr.get(i);
			JSONArray attrArr = (JSONArray) valueObj.get("Attrs");
			for (int i2 = 0; i2 < attrArr.size(); i2++) {
				JSONObject attrObj = (JSONObject) attrArr.get(i2);
				JSONObject nameObj = (JSONObject) attrObj.get("Name");
				if (nameObj.containsValue("bounds")) {
					String boundsStr = (String) attrObj.get("Value");
					boundsStr = boundsStr.replace("{", "").replace("}", "");
					boundsComponents = boundsStr.split(", ");
				}
				if (nameObj.containsValue("text")) {
					text = (String) attrObj.get("Value");
				}
			}
			elements.add(constructRokuNativeElementJSON(elementObj, text, boundsComponents));
		}
		return elements;
	}
public static List<JSONObject> constructRokuNativeElements(JSONObject elementObj) {
		List<JSONObject> elements = new ArrayList<>();
		JSONArray valueArr = (JSONArray) elementObj.get("value");
		if (valueArr == null) {
			return elements;
		}
		for (int i = 0; i < valueArr.size(); i++) {
			String[] boundsComponents = { "0", "0", "0", "0" };
			String text = "";
			JSONObject valueObj = (JSONObject) valueArr.get(i);
			JSONArray attrArr = (JSONArray) valueObj.get("Attrs");
			for (int i2 = 0; i2 < attrArr.size(); i2++) {
				JSONObject attrObj = (JSONObject) attrArr.get(i2);
				JSONObject nameObj = (JSONObject) attrObj.get("Name");
				if (nameObj.containsValue("bounds")) {
					String boundsStr = (String) attrObj.get("Value");
					boundsStr = boundsStr.replace("{", "").replace("}", "");
					boundsComponents = boundsStr.split(", ");
				}
				if (nameObj.containsValue("text")) {
					text = (String) attrObj.get("Value");
				}
			}
			elements.add(constructRokuNativeElementJSON(elementObj, text, boundsComponents));
		}
		return elements;
	}
public static list<jsonobject> constructrokunativeelements(jsonobject elementobj) { list<jsonobject> elements = new arraylist<>(); jsonarray valuearr = (jsonarray) elementobj.get("value"); if (valuearr == null) { return elements; } for (int i = 0; i < valuearr.size(); i++) { string[] boundscomponents = { "0", "0", "0", "0" }; string text = ""; jsonobject valueobj = (jsonobject) valuearr.get(i); jsonarray attrarr = (jsonarray) valueobj.get("attrs"); for (int i2 = 0; i2 < attrarr.size(); i2++) { jsonobject attrobj = (jsonobject) attrarr.get(i2); jsonobject nameobj = (jsonobject) attrobj.get("name"); if (nameobj.containsvalue("bounds")) { string boundsstr = (string) attrobj.get("value"); boundsstr = boundsstr.replace("{", "").replace("}", ""); boundscomponents = boundsstr.split(", "); } if (nameobj.containsvalue("text")) { text = (string) attrobj.get("value"); } } elements.add(constructrokunativeelementjson(elementobj, text, boundscomponents)); } return elements; }