Set input variable name in POST, PUT in REST API

I’m a newbie in the Yii2 universe and I ask for your support to solve this problem.
I need to set variable name in the input json file from the automatic snakecase generated name to camelCase. There is an opportunity to reach this goal?

This is my actual input json with snake_case:

“id”: 1,
“person”: {
“person_id”: 1,
“user_id”: “pippo”,
“name”: “Pippo”,
“surname”: “Pippo”,
“email”: “”,
“birth_date”: “1990-01-01”,
“business_line”: {
“id”: 2,
“name”: “Insurance Specialists”

and i want obtain a json like this, with camelCase:

    "id": 1,
    "person": {
        "id": 1,
        "userId": "pippo",
        "name": "Pippo",
        "surname": "Pippo",
        "email": "",
        "birthDate": "1990-01-01",
        "businessLine": {
            "id": 2,
            "name": "Insurance Specialists"

Thank you everyone for your support