1

I have a REST EXPORT view getting fields values of a node. I want to override the labels of these fields in the response returned. For example:- the returned response like this

[ 
    { 
        "question_title": "How are you?", 
}
]

I want the response like this

[ 
    { 
        "questionTitle": "How are you?", 
}
]

I tried to create label from the view but it doesn't affect.

1 Answer 1

3

In your view's row style options you can rename any exposed field's label. The form labels those fields as alias.

This is screenshot from another view I was working on, but should give you an idea.

screenshot of views row style options

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.