Add a new field to a JSON response

Decorate API responses in JSON format with new fields.

Compute

Use this solution in your Compute service:

  1. Go
  2. JavaScript
  3. Rust
This page is part of a series in the Personalization topic.

User contributed notes

BETA

Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact support@fastly.com)