Skip to content

Commit 10f719f

Browse files
committed
refactor: json block
1 parent af9ef58 commit 10f719f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/05-reference.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ request:
8585
body[text]: 'Plain text here'
8686

8787
# to pass as json to body pass a yaml object like
88-
body[json]: { user_id: 32, roll_no: 1, class: 2, name: 'Student name' }
88+
body[json]: {
89+
user_id: 32,
90+
roll_no: 1,
91+
class: 2,
92+
name: 'Student name'
93+
}
8994

9095
# to pass a xml as body use a yaml literal block
9196
body[xml]: |

0 commit comments

Comments
 (0)