string Serialize(IJsonCollection json_collection, int no_of_affected_rows) { JsonStringBuilder builder = new JsonStringBuilder() .WriteBeginObject() .WriteMember(Strings.kResponseAffectedRowsMemberName, no_of_affected_rows) .WriteMemberName(Strings.kResponseDataMemberName) .WriteUnquotedString(json_collection.AsJson()) .WriteEndObject(); return(builder.ToString()); }
string Serialize(IJsonCollection json_collection, int no_of_affected_rows) { JsonStringBuilder builder = new JsonStringBuilder() .WriteBeginObject() .WriteMember(Strings.kResponseAffectedRowsMemberName, no_of_affected_rows) .WriteMemberName(Strings.kResponseDataMemberName) .WriteUnquotedString(json_collection.AsJson()) .WriteEndObject(); return builder.ToString(); }