private void unmarshalJSON(byte[] bytes) { rawjson = bytes; MemoryStream stream = new MemoryStream(bytes); DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(responseData)); response = jsonSerializer.ReadObject(stream) as responseData; if (response != null && response.Status != "ok") { throw new ArgumentException(response.Msg); } setColumns(); }
private void reset() { err = string.Empty; response = new responseData(); columns.Clear(); rawjson = null; this.record = -1; }