Camel case is a language-independent naming convention in which an identifier name will start with a lowercase letter and each additional word within the name will start uppercase, such as customerName, printInvoice, etc.
Questions tagged [camelcasing]
403 questions
2
votes
3 answers
I'm trying to camelCase four phrases
Super beginner to Python here. Here's my code so far:
def make_camel_case(word_string):
word_list = word_string.split(’ ’)
output = ’’
for word in word_list:
word_upper = word[0].upper()
output = output+word_upper
…

misfortuneclub
- 59
- 5
2
votes
2 answers
ActiveModelSerializers :camel_lower configuration not working
I want to leverage AMS to create json data to pass as GraphQL variables in my test suite. Apparently, it support :camel_lower which would convert hash keys like :some_field to :someField but I can't seem to get it to work. Here's the relevant…

aarona
- 35,986
- 41
- 138
- 186
2
votes
2 answers
React - Eslint - Camel camel case props
I have a question about a standard eslint and camel case.
I have a redundant error on this type of code.
const response = yield call(currentAccount, localStorage.getItem('auth_token'))
console.log(`RESPONSE ${JSON.stringify(response)}`)
if…

cpt_3n0x
- 55
- 2
- 5
2
votes
1 answer
Should acronym be capitalized in camelcase if first word of camelCase?
Say I have an acronym/abbreviation like AB.
Is there a convention for how the variable should be named if it is the first word of a camelCase?
In other words should it be
* abTest
* ABTest
* AbTest
What if the acronym is more than 2 letters? Then…

writofmandamus
- 1,151
- 1
- 23
- 40
2
votes
1 answer
How to use JSON.Net CamelCasePropertyNamesContractResolver with dot separated names?
Our application uses validation attributes to make use of the ASP.NET model validation, however this gives dot separated names for validation errors. When passed through the CamelCasePropertyNamesContractResolver this only applies camelcase to…

Jake Conkerton-Darby
- 1,071
- 8
- 29
2
votes
0 answers
Query Camel case json documents in Azure CosmosDB
I have created collections with camelcase partition keys like \locationId instead of \LocationId. Also when inserting / updating documents in cosmosdb, i have added them as camelcase using below code :
T entity = null;
var settings = new…

RJoshi
- 31
- 1
- 3
2
votes
1 answer
Extending CamelCasePropertyNamesContractResolver does not work
I extend the Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver and apply the new resolver in my WebApi:
public static void Register(HttpConfiguration config)
{
var json = config.Formatters.JsonFormatter.SerializerSettings;
…

spiros
- 369
- 4
- 11
2
votes
1 answer
Issue with Default camelCase serialization of All Caps property names to JSON in ASP.Net core
I have an issue with the default serialization CamelCasing behavior of .Net Core and was hoping to see if someone else faced the same issue and what work around they used.
Property Names like FOO12 or FOO1 are incorrectly serialized to something…

TechLover
- 108
- 8
2
votes
1 answer
How do I camel case a specific property using Json.NET?
I want to camel case specific properties of an object using Json.NET rather than all of the properties.
I have an object like this:
class A {
public object B { get; set; }
public object C { get; set; } // this property should be camel…

pushkin
- 9,575
- 15
- 51
- 95
2
votes
1 answer
Microsoft Word: Camel Case Typing
Does anyone know if there is a shortcut, feature or plugin available for Microsoft Word that can make highlighted text or styles in method camel case, so variableName not just ClassName.
I know there is the Capitalise Each Word shortcut but this…

PastyAndPeas
- 108
- 1
- 5
2
votes
1 answer
CamelCase Search with Elasticsearch
I want to configure Elasticsearch, so that searching for "JaFNam" will create a good score for "JavaFileName".
I'm tried to build an analyzer, that combines a CamelCase pattern analyzer with an edge_ngram tokenizer. I thought this would create terms…

slartidan
- 20,403
- 15
- 83
- 131
2
votes
1 answer
How to Send camelCase Json to C# Web Api to Match Pascal Properties WithOut Error
Currently I'm using this JsonFormatter to send camel-cased data to the client
config.Formatters.JsonFormatter.SerializerSettings.ContractResolver =
new CamelCasePropertyNamesContractResolver();
WebApiConfig
using…

Filling The Stack is What I DO
- 6,553
- 14
- 54
- 86
2
votes
1 answer
Sublime Text 3 - snippet with camel case - and removal or word converting of special characters
I am updating some Sublime Text snippets to help automate some page developing, but I am running into a bit of a hurdle.
For this snippet I am currently trying to get the metrics string (based on the alt text), to do the following:
…

Hinukan
- 35
- 3
2
votes
1 answer
Regular expression or other way to convert to camel-like case in JavaScript
I have gone through similar posts but none of them handle this specific case.
I want to convert some old naming conventions to camel-like case. However, I want the conversion to be restricted to only the following:
A string (consisting of alphabets…

Sunny
- 9,245
- 10
- 49
- 79
2
votes
2 answers
Propel2: lowercase/camelCase keys when converting ObjectCollection toJSON()
How can we convert the keys of a toJson() returned object to lowercase or camelCase?
Consider the following example:
Query:
$foo = FooQuery::create()
->filterByBar($bar)
->findOne()
->toJson();
Result:
{"Id": 1,…

scripton
- 228
- 5
- 15