Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Getting Binary instead of JSON

2 replies [Last post]
  • Login or register to post comments
Tue, 10/30/2012 - 16:37
Idan
Offline
Joined: 05/18/2012
Groups: None

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?

Top
  • Login or register to post comments
Tue, 10/30/2012 - 21:24
mikew
Offline
Joined: 03/14/2011
Groups:

Can you post the code you used to cause this problem?

Top
  • Login or register to post comments
Tue, 10/30/2012 - 21:31
Idan
Offline
Joined: 05/18/2012
Groups: None

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.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker