File tree Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Original file line number Diff line number Diff line change 1- 'use strict'
1+ 'use strict'
22
3- const fastJson = require ( '.' )
4- const stringify = fastJson ( {
5- title : 'Example Schema' ,
6- type : 'object' ,
7- properties : {
8- firstName : {
9- type : 'string'
10- } ,
11- lastName : {
12- type : 'string'
13- } ,
14- age : {
15- description : 'Age in years' ,
16- type : 'integer'
17- } ,
18- now : {
19- type : 'string'
20- } ,
21- reg : {
22- type : 'string'
23- }
3+ const fastJson = require ( '.' )
4+ const stringify = fastJson ( {
5+ title : 'Example Schema' ,
6+ type : 'object' ,
7+ properties : {
8+ firstName : {
9+ type : 'string'
10+ } ,
11+ lastName : {
12+ type : 'string'
13+ } ,
14+ age : {
15+ description : 'Age in years' ,
16+ type : 'integer'
17+ } ,
18+ now : {
19+ type : 'string'
20+ } ,
21+ reg : {
22+ type : 'string'
2423 }
25- } )
24+ }
25+ } )
2626
27- console . log ( stringify ( {
28- firstName : 'Matteo' ,
29- lastName : 'Collina' ,
30- age : 32 ,
31- now : new Date ( ) ,
32- reg : / " ( [ ^ " ] | \\ " ) * " /
27+ console . log ( stringify ( {
28+ firstName : 'Matteo' ,
29+ lastName : 'Collina' ,
30+ age : 32 ,
31+ now : new Date ( ) ,
32+ reg : / " ( [ ^ " ] | \\ " ) * " /
3333} ) )
You can’t perform that action at this time.
0 commit comments