How to change field_canonicalurl to canonicalUrl and field_teaser to Teaser?

Below is my API output from my View:

[{"field_canonicalurl":"","title":"This is the title ","field_teaser":"\u003Cp\u003EIn this is the teaser \n" }]

Go to field settings of the Rest export view, add Alias for each field, Save. That's it. You're done

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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