I'm rendering some json that outputs this
render json: service.get_object_item(param)
[
[0] "{"object_item":[{"count":1,"dueDate":"2021-02-23","dayCreated":23}]}"
]
I want to change the object_item array key to camel case so it will match the inner array casing.
[
[0] "{"objectItem":[{"count":1,"dueDate":"2021-02-23","dayCreated":23}]}"
]
However it seems like it gets set when render gets called so I can't change it. I've only been able to omit it by doing render json: service.get_object_item(param).to_json.
object_item