---
title: Add a new field to a JSON response
summary: Decorate API responses in JSON format with new fields.
url: https://www.fastly.com/documentation/solutions/examples/add-a-new-field-to-a-json-response
---

Decorate API responses in JSON format with new fields.

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/df0f9bf3)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/f191b424)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/0c5104e7)

