Getting Binary instead of JSON
When I insert data into the database I always get it in binary form. I want it to be JSON. I ues attributions above all my fields in the class (ex. [JsonProperty("name")]).
I only use type INT or STRING, but still when I put the data using client.store StoreMOde.Add the data is saved as binary, not JSON. What am I doing wrong?
Thanks for replying fast. Even a simple insert is stored as binary not Json.
client.Store(StoreMode.Add, "box_" + key, "test");
I have a class in my application:
[Serializable]
public class Box
{
public string Id {get; set;}
[JsonProperty("name")]
public string Name { get; set; }
}
Even that code with a simple client.Store function inserts as binary and not JSON. I am using CouchBase 2.0 beta.
Can you post the code you used to cause this problem?