You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to automatically convert camel case fields to underscored?
For example:
casecasePerson(firstName: String, lastName: String)
objectPerson {
// will be used by format to map field namesimplicitvaljsonConfig=JsonConfiguration(SnakeCase)
implicitvalformat=Jsonx.formatCaseClass[Person]
}
Should produce:
{
"first_name": "...",
"last_name": "..."
}
I found some code in ai.x.play.json.SingletonEncoder but seems that it is used only in ai.x.play.json.Jsonx#formatSingleton
The text was updated successfully, but these errors were encountered:
Is there any way to automatically convert camel case fields to underscored?
For example:
Should produce:
I found some code in
ai.x.play.json.SingletonEncoder
but seems that it is used only inai.x.play.json.Jsonx#formatSingleton
The text was updated successfully, but these errors were encountered: