private static KeyValuePair<string, RavenJToken> CreateProperty(Field fld, Document document) { if (fld.IsBinary) return new KeyValuePair<string, RavenJToken>(fld.Name, fld.GetBinaryValue()); var stringValue = fld.StringValue; if (document.GetField(fld.Name + "_ConvertToJson") != null) { var val = RavenJToken.Parse(fld.StringValue) as RavenJObject; return new KeyValuePair<string, RavenJToken>(fld.Name, val); } if (stringValue == Constants.NullValue) stringValue = null; if (stringValue == Constants.EmptyString) stringValue = string.Empty; return new KeyValuePair<string, RavenJToken>(fld.Name, stringValue); }