json-api-client icon indicating copy to clipboard operation
json-api-client copied to clipboard

How do I transform keys from kabab case to camel case

Open joegaudet opened this issue 3 years ago • 1 comments

In our api the keys for the attributes and relationships are in kabab case

is-new-restaurant, which I would like to use as isNewRestaurant, is there a way to handle this?

joegaudet avatar Oct 19 '22 21:10 joegaudet

Base on this, https://jsonapi.org/format/#document-member-names

_ - and space are allowed characters so support for them should be included.

joegaudet avatar Oct 19 '22 21:10 joegaudet