I use FOS Rest bundle and JMS Serializer to create REST Api. The problem is that I would like to keep the property names in the returned JSON camel, instead of using _.
For example, I have a property called employeeIdentifier, which by default translates to employee_identifier.
I saw that there is an option in the configuration to disable the lowercase letter and get rid of _, but then it becomes an EmployeeIdentifier.
Is there a way that the JMS Serializer keeps the original property name? thanks in advance
source
share