Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
CN-Tower committed Oct 10, 2020
1 parent a198803 commit f743368
Show file tree
Hide file tree
Showing 7 changed files with 1,075 additions and 1,129 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#### In HTML
```html
<script src="https://unpkg.com/[email protected].2/format2json.min.js"></script>
<script src="https://unpkg.com/[email protected].3/format2json.min.js"></script>
<script>
const source = `{"zjson":"ZJSON","description":"Online json formatter","version":"v4.1.8","updateTime":"2018-11-23","url":"http:https://zjson.net","project":"http:https://github.com/CN-Tower/zjson","language":["中文(简体)","English"],"keywords":["zjson","json formatter"],"content":{"array":["element 001","element 002"],"boolean":true,"null":null,"number":123,"string":"Hello World","object":{"property":"value","key":"val"}}}`;
const jsonLike = await format2json(source, { resultOnly: true });
Expand Down Expand Up @@ -134,7 +134,7 @@ Run: `format2json -i 4 -k "" -v "'"`
√ Input a string to foramt: · [{name: "Tom", age: 28, gender: "male"}]
==================================================================
[10:42:20] format-to-json(1.0.2)
[10:42:20] format-to-json(1.0.3)
------------------------------------------------------------------
[
{
Expand Down
Loading

0 comments on commit f743368

Please sign in to comment.