Skip to content

Commit 22547eb

Browse files
committed
docs: add section—Differences between svelte-jsoneditor and json-editor-vue
1 parent 697fe18 commit 22547eb

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,16 @@ import JsonEditorVue from 'json-editor-vue'
558558

559559
<br>
560560

561+
## Differences between `svelte-jsoneditor` and `json-editor-vue`
562+
563+
| | `svelte-jsoneditor` | `json-editor-vue` |
564+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------ |
565+
| Binding value | An object contains a stringified JSON or a parsed JSON, <br>will do `JSON.parse` when passing as a stringified JSON. | JSON itself. What users see is what users pass. |
566+
567+
Check https://github.com/josdejong/svelte-jsoneditor/pull/166 for more details.
568+
569+
<br>
570+
561571
## Changelog
562572

563573
Detailed changes for each release are documented in the [release notes](https://github.com/cloydlau/json-editor-vue/releases).

docs/README.zh-CN.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,16 @@ import JsonEditorVue from 'json-editor-vue'
556556

557557
<br>
558558

559+
## `svelte-jsoneditor``json-editor-vue` 的差异
560+
561+
| | `svelte-jsoneditor` | `json-editor-vue` |
562+
| ------ | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
563+
| 绑定值 | 一个包含「stringified JSON」或「parsed JSON」的对象,<br>当作为「stringified JSON」传入时,会经过 `JSON.parse` 解析。 | JSON 本身。用户传什么参数编辑器就展示什么数据。 |
564+
565+
详情见 https://github.com/josdejong/svelte-jsoneditor/pull/166.
566+
567+
<br>
568+
559569
## 更新日志
560570

561571
各版本详细改动请参考 [release notes](https://github.com/cloydlau/json-editor-vue/releases)

0 commit comments

Comments
 (0)