---
title: "HTTP JSONify | wasmCloud"
description: "This is a simple Rust Wasm example that converts an incoming HTTP request to a JSON representation, and returns that as the response."
canonical: "https://wasmcloud.com/docs/v1/examples/rust/component/http-jsonify/"
---

This is documentation for wasmCloud **v1**, which is no longer actively maintained.

For up-to-date documentation, see the **[latest version](https://wasmcloud.com/docs/)** (v2).

Version: v1

# HTTP JSONify

This is a simple Rust Wasm example that converts an incoming HTTP request to a JSON representation, and returns that as the response.

## Prerequisites

- `cargo` >=1.75
- [`wash`](https://wasmcloud.com/docs/v1/installation/) >=0.27.0
- `wasmtime` >=19.0.0 (if running with wasmtime)

## BUilding

console

```console
wash build
```

## Running with wasmtime

You must have wasmtime >=19.0.0 for this to work. Make sure to follow the build step above first.

bash

```bash
wasmtime serve -Scommon ./build/http_hello_world_s.wasm
```

## Running with wasmCloud

Ensuring you've built your component with `wash build`, you can launch wasmCloud and deploy the full hello world application with the following commands.

Once the application reports as **Deployed** in the application list, you can use `curl` to send a request to the running HTTP server.

shell

```shell
wash up -d
wash app deploy ./wadm.yaml
wash app get
curl http://127.0.0.1:8000
```

## Adding Capabilities

To learn how to extend this example with additional capabilities, see the [Adding Capabilities](https://wasmcloud.com/docs/v1/tour/add-features/?lang=rust) section of the wasmCloud documentation.

Last updated on **Nov 20, 2026** by **Victor Adossi**
