Why default to camelCase property names?


#1

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.plugin.system.issuetabpanels:all-tabpanel

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

Thanks,
Yueying


#2

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