diff --git a/docs/README.md b/docs/README.md
index 2e802249..c7cd32a5 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1072,11 +1072,10 @@ Send a simple JSON response:
mg_http_reply(c, 200, "Content-Type: application/json\r\n", "{\"result\": %d}", 123);
```
-Send JSON response using [mjson](https://github.com/cesanta/mjson) library:
+Send JSON response:
```c
-char *json = NULL;
-mjson_printf(mjson_print_dynamic_buf, &json, "{%Q:%d}", "name", 123);
-mg_http_reply(c, 200, "Content-Type: application/json\r\n", "%s", json);
+char *json = mg_mprintf("{%Q:%d}", "name", 123);
+mg_http_reply(c, 200, "Content-Type: application/json\r\n", "%s\n", json);
free(json);
```
diff --git a/docs/images/mg_http_reply.svg b/docs/images/mg_http_reply.svg
index 16c00128..44dadde2 100644
--- a/docs/images/mg_http_reply.svg
+++ b/docs/images/mg_http_reply.svg
@@ -28,7 +28,7 @@
Content-Length; 13
X-Header-1: additional value 1
X-Header-2: additional value 2
- Hello, World!
+ Hello, world!
HTTP message
@@ -36,7 +36,7 @@
mg_http_reply(c, 200
"X-Header-1: additional value 1\r\n"
- "X-Header-1: additional value 2\r\n",
+ "X-Header-2: additional value 2\r\n",
"Hello, %s!", "world");