public static bool ReadDictionary(Dictionary <string, object> inDict, string inVariableName, ref Dictionary <string, object> refValue) { if (inDict.ContainsKey(inVariableName) == true) { if (refValue == null) { refValue = new Dictionary <string, object>(); } refValue = JSONTools.ReadDictionary(inDict, inVariableName); return(true); } return(false); }