From 25972d9d0d6f995defe7b5c599c1be52b3a78e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E9=B9=B0?= <17kungfuboy@gmail.com> Date: Mon, 15 Aug 2022 09:44:57 +0800 Subject: [PATCH] feat: format json in params-import --- .../shared/components/params-import/params-import.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts b/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts index 0af5d7a9a..4a982dfea 100644 --- a/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts +++ b/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts @@ -43,6 +43,8 @@ export class ParamsImportComponent { return `name: Jack\nage: 12`; case 'query': return `/api?name=Jack&age=12`; + case 'json': + return `{ "name": "Jack", "age": 12}`; default: return `/api?name=Jack&age=12`; }