JSONTools.JSONObject.GetLastObject C# (CSharp) Method

GetLastObject() public method

public GetLastObject ( JSONObject Input ) : JSONObject
Input JSONObject
return JSONObject
        public JSONObject GetLastObject(JSONObject Input)
        {
            if (!Input.ContainsObjects)
            {
                return Input;
            }
            else
            {
                return GetLastObject(Input.ChildJSONObjects[Input.ChildJSONObjects.Count - 1]);
            }
        }