Why default to camelCase property names?

Hello,

Is there any reason to default the property names to camelCase? If not, how can I remove this default settings for JSON output?

http://www.couchbase.com/issues/browse/NCBC-155?page=com.atlassian.jira....

private class DocumentIdContractResolver : CamelCasePropertyNamesContractResolver
{
protected override List GetSerializableMembers(Type objectType)
{
return base.GetSerializableMembers(objectType).Where(o => o.Name != "Id").ToList();
}
}

Thanks,
Yueying

1 Answer

« Back to question.

qingdou -

I don't know of any specific reason for this. You may want to create a feature request (create an issue) to make this overridable: http://www.couchbase.com/issues/browse/NCBC

-Jeff