From fbd8c365c8a54dacf4e44ed2e5b4cddad8b6b5e8 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 2 Sep 2021 16:56:29 +0200 Subject: [PATCH] language/nodejs: un-wrap JSON in example to allow copying The JSON string was wrapped, causing the highlighter to consider it "output", which cannot be selected/copied in "console" blocks. This unwraps the JSON so that it can be copied. Signed-off-by: Sebastiaan van Stijn --- language/nodejs/develop.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/language/nodejs/develop.md b/language/nodejs/develop.md index 7023e03058..791b6639e7 100644 --- a/language/nodejs/develop.md +++ b/language/nodejs/develop.md @@ -92,11 +92,7 @@ Let’s test that our application is connected to the database and is able to ad $ curl --request POST \ --url http://localhost:8000/notes \ --header 'content-type: application/json' \ - --data '{ -"name": "this is a note", -"text": "this is a note that I wanted to take while I was working on writing a blog post.", -"owner": "peter" -}' + --data '{"name": "this is a note", "text": "this is a note that I wanted to take while I was working on writing a blog post.", "owner": "peter"}' ``` You should receive the following json back from our service.