OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/
PropertyList-1.0.dtd"> | 2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/
PropertyList-1.0.dtd"> |
3 <plist version="1.0"> | 3 <plist version="1.0"> |
4 <dict> | 4 <dict> |
5 <key>ActiveLayerIndex</key> | 5 <key>ActiveLayerIndex</key> |
6 <integer>0</integer> | 6 <integer>0</integer> |
7 <key>ApplicationVersion</key> | 7 <key>ApplicationVersion</key> |
8 <array> | 8 <array> |
9 <string>com.omnigroup.OmniGrafflePro</string> | 9 <string>com.omnigroup.OmniGrafflePro</string> |
10 » » <string>139.16.0.171715</string> | 10 » » <string>139.18.0.187838</string> |
11 </array> | 11 </array> |
12 <key>AutoAdjust</key> | 12 <key>AutoAdjust</key> |
13 <true/> | 13 <true/> |
14 <key>BackgroundGraphic</key> | 14 <key>BackgroundGraphic</key> |
15 <dict> | 15 <dict> |
16 <key>Bounds</key> | 16 <key>Bounds</key> |
17 <string>{{0, 0}, {576, 733}}</string> | 17 <string>{{0, 0}, {576, 733}}</string> |
18 <key>Class</key> | 18 <key>Class</key> |
19 <string>SolidGraphic</string> | 19 <string>SolidGraphic</string> |
20 <key>ID</key> | 20 <key>ID</key> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 <string>NO</string> | 98 <string>NO</string> |
99 </dict> | 99 </dict> |
100 </dict> | 100 </dict> |
101 <key>Text</key> | 101 <key>Text</key> |
102 <dict> | 102 <dict> |
103 <key>Align</key> | 103 <key>Align</key> |
104 <integer>0</integer> | 104 <integer>0</integer> |
105 <key>Pad</key> | 105 <key>Pad</key> |
106 <integer>2</integer> | 106 <integer>2</integer> |
107 <key>Text</key> | 107 <key>Text</key> |
108 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 108 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
109 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 109 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
110 {\colortbl;\red255\green255\blue255;\red128\green0\blue0;} | 110 {\colortbl;\red255\green255\blue255;\red128\green0\blue0;} |
111 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 111 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
112 | 112 |
113 \f0\i\b\fs28 \cf2 Save to $tutorial/fetchdata/images/jsonstring.png}</string> | 113 \f0\i\b\fs28 \cf2 Save to $tutorial/fetchdata/images/jsonstring.png}</string> |
114 <key>VerticalPad</key> | 114 <key>VerticalPad</key> |
115 <integer>2</integer> | 115 <integer>2</integer> |
116 </dict> | 116 </dict> |
117 <key>Wrap</key> | 117 <key>Wrap</key> |
118 <string>NO</string> | 118 <string>NO</string> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 <string>NO</string> | 164 <string>NO</string> |
165 </dict> | 165 </dict> |
166 </dict> | 166 </dict> |
167 <key>Text</key> | 167 <key>Text</key> |
168 <dict> | 168 <dict> |
169 <key>Align</key> | 169 <key>Align</key> |
170 <integer>0</integer> | 170 <integer>0</integer> |
171 <key>Pad</key> | 171 <key>Pad</key> |
172 <integer>2</integer> | 172 <integer>2</integer> |
173 <key>Text</key> | 173 <key>Text</key> |
174 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 174 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
175 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 175 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
176 {\colortbl;\red255\green255\blue255;\red128\green0\blue0;} | 176 {\colortbl;\red255\green255\blue255;\red128\green0\blue0;} |
177 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 177 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
178 | 178 |
179 \f0\i\b\fs28 \cf2 Save to $tutorial/fetchdata/images/stringify.png}</string> | 179 \f0\i\b\fs28 \cf2 Save to $tutorial/fetchdata/images/stringify.png}</string> |
180 <key>VerticalPad</key> | 180 <key>VerticalPad</key> |
181 <integer>2</integer> | 181 <integer>2</integer> |
182 </dict> | 182 </dict> |
183 <key>Wrap</key> | 183 <key>Wrap</key> |
184 <string>NO</string> | 184 <string>NO</string> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 <dict> | 219 <dict> |
220 <key>CornerRadius</key> | 220 <key>CornerRadius</key> |
221 <real>7</real> | 221 <real>7</real> |
222 </dict> | 222 </dict> |
223 </dict> | 223 </dict> |
224 <key>Text</key> | 224 <key>Text</key> |
225 <dict> | 225 <dict> |
226 <key>Align</key> | 226 <key>Align</key> |
227 <integer>0</integer> | 227 <integer>0</integer> |
228 <key>Text</key> | 228 <key>Text</key> |
229 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 229 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
230 \cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} | 230 \cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} |
231 {\colortbl;\red255\green255\blue255;} | 231 {\colortbl;\red255\green255\blue255;} |
232 \deftab720 | 232 \deftab720 |
233 \pard\tx1726\pardeftab720 | 233 \pard\tx1726\pardeftab720 |
234 | 234 |
235 \f0\fs28 \cf0 \{ "favoriteNumber":44,\ | 235 \f0\fs28 \cf0 \{ "favoriteNumber":44,\ |
236 "valueOfPi":3.141592,\ | 236 "valueOfPi":3.141592,\ |
237 "chocolate":true,\ | 237 "chocolate":true,\ |
238 "horrorScope":"virgo",\ | 238 "horrorScope":"virgo",\ |
239 "favoriteThings":["raindrops",\ | 239 "favoriteThings":["raindrops",\ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 <string>LineGraphic</string> | 282 <string>LineGraphic</string> |
283 <key>Head</key> | 283 <key>Head</key> |
284 <dict> | 284 <dict> |
285 <key>ID</key> | 285 <key>ID</key> |
286 <integer>34159</integer> | 286 <integer>34159</integer> |
287 </dict> | 287 </dict> |
288 <key>ID</key> | 288 <key>ID</key> |
289 <integer>34171</integer> | 289 <integer>34171</integer> |
290 <key>Points</key> | 290 <key>Points</key> |
291 <array> | 291 <array> |
292 » » » » <string>{469, 598.91523243851429}</string> | 292 » » » » <string>{469, 598.9152327292777}</string> |
293 » » » » <string>{312, 602.6474790059624}</string> | 293 » » » » <string>{312, 602.64748048243609}</string> |
294 </array> | 294 </array> |
295 <key>Style</key> | 295 <key>Style</key> |
296 <dict> | 296 <dict> |
297 <key>stroke</key> | 297 <key>stroke</key> |
298 <dict> | 298 <dict> |
299 <key>HeadArrow</key> | 299 <key>HeadArrow</key> |
300 <string>FilledArrow</string> | 300 <string>FilledArrow</string> |
301 <key>Legacy</key> | 301 <key>Legacy</key> |
302 <true/> | 302 <true/> |
303 <key>TailArrow</key> | 303 <key>TailArrow</key> |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 <string>NO</string> | 487 <string>NO</string> |
488 </dict> | 488 </dict> |
489 </dict> | 489 </dict> |
490 <key>Text</key> | 490 <key>Text</key> |
491 <dict> | 491 <dict> |
492 <key>Align</key> | 492 <key>Align</key> |
493 <integer>0</integer> | 493 <integer>0</integer> |
494 <key>Pad</key> | 494 <key>Pad</key> |
495 <integer>2</integer> | 495 <integer>2</integer> |
496 <key>Text</key> | 496 <key>Text</key> |
497 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 497 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
498 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 498 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
499 {\colortbl;\red255\green255\blue255;} | 499 {\colortbl;\red255\green255\blue255;} |
500 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 500 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
501 | 501 |
502 \f0\fs24 \cf0 Map: string keys, values of various types}</string> | 502 \f0\fs24 \cf0 Map: string keys, values of various types}</string> |
503 <key>VerticalPad</key> | 503 <key>VerticalPad</key> |
504 <integer>2</integer> | 504 <integer>2</integer> |
505 </dict> | 505 </dict> |
506 <key>Wrap</key> | 506 <key>Wrap</key> |
507 <string>NO</string> | 507 <string>NO</string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 <string>NO</string> | 551 <string>NO</string> |
552 </dict> | 552 </dict> |
553 </dict> | 553 </dict> |
554 <key>Text</key> | 554 <key>Text</key> |
555 <dict> | 555 <dict> |
556 <key>Align</key> | 556 <key>Align</key> |
557 <integer>0</integer> | 557 <integer>0</integer> |
558 <key>Pad</key> | 558 <key>Pad</key> |
559 <integer>2</integer> | 559 <integer>2</integer> |
560 <key>Text</key> | 560 <key>Text</key> |
561 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 561 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
562 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 562 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
563 {\colortbl;\red255\green255\blue255;} | 563 {\colortbl;\red255\green255\blue255;} |
564 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 564 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
565 | 565 |
566 \f0\fs24 \cf0 List of strings}</string> | 566 \f0\fs24 \cf0 List of strings}</string> |
567 <key>VerticalPad</key> | 567 <key>VerticalPad</key> |
568 <integer>2</integer> | 568 <integer>2</integer> |
569 </dict> | 569 </dict> |
570 <key>Wrap</key> | 570 <key>Wrap</key> |
571 <string>NO</string> | 571 <string>NO</string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 <string>NO</string> | 615 <string>NO</string> |
616 </dict> | 616 </dict> |
617 </dict> | 617 </dict> |
618 <key>Text</key> | 618 <key>Text</key> |
619 <dict> | 619 <dict> |
620 <key>Align</key> | 620 <key>Align</key> |
621 <integer>0</integer> | 621 <integer>0</integer> |
622 <key>Pad</key> | 622 <key>Pad</key> |
623 <integer>2</integer> | 623 <integer>2</integer> |
624 <key>Text</key> | 624 <key>Text</key> |
625 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 625 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
626 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 626 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
627 {\colortbl;\red255\green255\blue255;} | 627 {\colortbl;\red255\green255\blue255;} |
628 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 628 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
629 | 629 |
630 \f0\fs24 \cf0 String}</string> | 630 \f0\fs24 \cf0 String}</string> |
631 <key>VerticalPad</key> | 631 <key>VerticalPad</key> |
632 <integer>2</integer> | 632 <integer>2</integer> |
633 </dict> | 633 </dict> |
634 <key>Wrap</key> | 634 <key>Wrap</key> |
635 <string>NO</string> | 635 <string>NO</string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 <string>NO</string> | 679 <string>NO</string> |
680 </dict> | 680 </dict> |
681 </dict> | 681 </dict> |
682 <key>Text</key> | 682 <key>Text</key> |
683 <dict> | 683 <dict> |
684 <key>Align</key> | 684 <key>Align</key> |
685 <integer>0</integer> | 685 <integer>0</integer> |
686 <key>Pad</key> | 686 <key>Pad</key> |
687 <integer>2</integer> | 687 <integer>2</integer> |
688 <key>Text</key> | 688 <key>Text</key> |
689 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 689 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
690 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 690 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
691 {\colortbl;\red255\green255\blue255;} | 691 {\colortbl;\red255\green255\blue255;} |
692 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 692 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
693 | 693 |
694 \f0\fs24 \cf0 bool}</string> | 694 \f0\fs24 \cf0 bool}</string> |
695 <key>VerticalPad</key> | 695 <key>VerticalPad</key> |
696 <integer>2</integer> | 696 <integer>2</integer> |
697 </dict> | 697 </dict> |
698 <key>Wrap</key> | 698 <key>Wrap</key> |
699 <string>NO</string> | 699 <string>NO</string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 <string>NO</string> | 743 <string>NO</string> |
744 </dict> | 744 </dict> |
745 </dict> | 745 </dict> |
746 <key>Text</key> | 746 <key>Text</key> |
747 <dict> | 747 <dict> |
748 <key>Align</key> | 748 <key>Align</key> |
749 <integer>0</integer> | 749 <integer>0</integer> |
750 <key>Pad</key> | 750 <key>Pad</key> |
751 <integer>2</integer> | 751 <integer>2</integer> |
752 <key>Text</key> | 752 <key>Text</key> |
753 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 753 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
754 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 754 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
755 {\colortbl;\red255\green255\blue255;} | 755 {\colortbl;\red255\green255\blue255;} |
756 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 756 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
757 | 757 |
758 \f0\fs24 \cf0 double}</string> | 758 \f0\fs24 \cf0 double}</string> |
759 <key>VerticalPad</key> | 759 <key>VerticalPad</key> |
760 <integer>2</integer> | 760 <integer>2</integer> |
761 </dict> | 761 </dict> |
762 <key>Wrap</key> | 762 <key>Wrap</key> |
763 <string>NO</string> | 763 <string>NO</string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 <string>NO</string> | 807 <string>NO</string> |
808 </dict> | 808 </dict> |
809 </dict> | 809 </dict> |
810 <key>Text</key> | 810 <key>Text</key> |
811 <dict> | 811 <dict> |
812 <key>Align</key> | 812 <key>Align</key> |
813 <integer>0</integer> | 813 <integer>0</integer> |
814 <key>Pad</key> | 814 <key>Pad</key> |
815 <integer>2</integer> | 815 <integer>2</integer> |
816 <key>Text</key> | 816 <key>Text</key> |
817 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 817 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
818 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} | 818 \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} |
819 {\colortbl;\red255\green255\blue255;} | 819 {\colortbl;\red255\green255\blue255;} |
820 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural | 820 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx616
0\tx6720\pardirnatural |
821 | 821 |
822 \f0\fs24 \cf0 integer}</string> | 822 \f0\fs24 \cf0 integer}</string> |
823 <key>VerticalPad</key> | 823 <key>VerticalPad</key> |
824 <integer>2</integer> | 824 <integer>2</integer> |
825 </dict> | 825 </dict> |
826 <key>Wrap</key> | 826 <key>Wrap</key> |
827 <string>NO</string> | 827 <string>NO</string> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 </dict> | 1063 </dict> |
1064 <key>stroke</key> | 1064 <key>stroke</key> |
1065 <dict> | 1065 <dict> |
1066 <key>Draws</key> | 1066 <key>Draws</key> |
1067 <string>NO</string> | 1067 <string>NO</string> |
1068 </dict> | 1068 </dict> |
1069 </dict> | 1069 </dict> |
1070 </dict> | 1070 </dict> |
1071 <dict> | 1071 <dict> |
1072 <key>Bounds</key> | 1072 <key>Bounds</key> |
1073 » » » <string>{{29, 23}, {515, 402}}</string> | 1073 » » » <string>{{29, 23}, {493, 402}}</string> |
1074 <key>Class</key> | 1074 <key>Class</key> |
1075 <string>ShapedGraphic</string> | 1075 <string>ShapedGraphic</string> |
1076 <key>FitText</key> | 1076 <key>FitText</key> |
1077 <string>YES</string> | 1077 <string>YES</string> |
1078 <key>Flow</key> | 1078 <key>Flow</key> |
1079 <string>Resize</string> | 1079 <string>Resize</string> |
1080 <key>FontInfo</key> | 1080 <key>FontInfo</key> |
1081 <dict> | 1081 <dict> |
1082 <key>Font</key> | 1082 <key>Font</key> |
1083 <string>HelveticaNeue</string> | 1083 <string>HelveticaNeue</string> |
(...skipping 20 matching lines...) Expand all Loading... |
1104 <dict> | 1104 <dict> |
1105 <key>CornerRadius</key> | 1105 <key>CornerRadius</key> |
1106 <real>7</real> | 1106 <real>7</real> |
1107 </dict> | 1107 </dict> |
1108 </dict> | 1108 </dict> |
1109 <key>Text</key> | 1109 <key>Text</key> |
1110 <dict> | 1110 <dict> |
1111 <key>Align</key> | 1111 <key>Align</key> |
1112 <integer>0</integer> | 1112 <integer>0</integer> |
1113 <key>Text</key> | 1113 <key>Text</key> |
1114 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf340 | 1114 » » » » <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\coc
oasubrtf390 |
1115 \cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} | 1115 \cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;} |
1116 {\colortbl;\red255\green255\blue255;\red1\green1\blue1;} | 1116 {\colortbl;\red255\green255\blue255;\red1\green1\blue1;} |
1117 \deftab720 | 1117 \deftab720 |
1118 \pard\pardeftab720 | 1118 \pard\pardeftab720 |
1119 | 1119 |
1120 \f0\fs24 \cf2 import 'dart:json' as json;\ | 1120 \f0\fs24 \cf2 import 'dart:convert';\ |
1121 ...\ | 1121 ...\ |
1122 \pard\pardeftab720 | 1122 void showJson() \{\ |
1123 \cf2 void showJson() \{\ | |
1124 // Typed data to convert to JSON\ | 1123 // Typed data to convert to JSON\ |
1125 num favNum = int.parse(favoriteNumber);\ | 1124 num favNum = int.parse(favoriteNumber);\ |
1126 num pi = double.parse(valueOfPi);\ | 1125 num pi = double.parse(valueOfPi);\ |
1127 var anElement = query('#true');\ | 1126 var anElement = query('#true');\ |
1128 bool choco = anElement.checked ? true : false;\ | 1127 bool choco = anElement.checked ? true : false;\ |
1129 \ | 1128 \ |
1130 List<String> favoriteThings = [ favOne, favTwo, favThree ];\ | 1129 List<String> favoriteThings = [ favOne, favTwo, favThree ];\ |
1131 \ | 1130 \ |
1132 Map formData = \{\ | 1131 Map formData = \{\ |
1133 'favoriteNumber': favNum,\ | 1132 'favoriteNumber': favNum,\ |
1134 'valueOfPi': pi,\ | 1133 'valueOfPi': pi,\ |
1135 'chocolate': choco,\ | 1134 'chocolate': choco,\ |
1136 'horrorScope': horrorScope,\ | 1135 'horrorScope': horrorScope,\ |
1137 'favoriteThings': favoriteThings\ | 1136 'favoriteThings': favoriteThings\ |
1138 \};\ | 1137 \};\ |
1139 \ | 1138 \ |
1140 // Convert everything to JSON\ | 1139 // Convert everything to JSON\ |
1141 intAsJson = json.stringify(favNum); // int\ | 1140 intAsJson = JSON.encode(favNum); // int\ |
1142 doubleAsJson = json.stringify(pi); // double\ | 1141 doubleAsJson = JSON.encode(pi); // double\ |
1143 boolAsJson = json.stringify(choco); // boolean\ | 1142 boolAsJson = JSON.encode(choco); // boolean\ |
1144 stringAsJson = json.stringify(horrorScope); // string\ | 1143 stringAsJson = JSON.encode(horrorScope); // string\ |
1145 listAsJson = json.stringify(favoriteThings); // list of strings\ | 1144 listAsJson = JSON.encode(favoriteThings); // list of strings\ |
1146 mapAsJson = json.stringify(formData); // map with string keys\ | 1145 mapAsJson = JSON.encode(formData); // map with string keys\ |
1147 // and mixed values\ | 1146 // and mixed values\ |
1148 \}}</string> | 1147 \}}</string> |
1149 </dict> | 1148 </dict> |
1150 <key>Wrap</key> | 1149 <key>Wrap</key> |
1151 <string>NO</string> | 1150 <string>NO</string> |
1152 </dict> | 1151 </dict> |
1153 <dict> | 1152 <dict> |
1154 <key>Bounds</key> | 1153 <key>Bounds</key> |
1155 » » » <string>{{47, 292}, {490, 116}}</string> | 1154 » » » <string>{{47, 292}, {475, 116}}</string> |
1156 <key>Class</key> | 1155 <key>Class</key> |
1157 <string>ShapedGraphic</string> | 1156 <string>ShapedGraphic</string> |
1158 <key>ID</key> | 1157 <key>ID</key> |
1159 <integer>34160</integer> | 1158 <integer>34160</integer> |
1160 <key>Magnets</key> | 1159 <key>Magnets</key> |
1161 <array> | 1160 <array> |
1162 <string>{0.38387096774193563, -0.25}</string> | 1161 <string>{0.38387096774193563, -0.25}</string> |
1163 <string>{-0.39130434782608692, -0.25}</string> | 1162 <string>{-0.39130434782608692, -0.25}</string> |
1164 <string>{-0.026359714598051087, 0.5}</string> | 1163 <string>{-0.026359714598051087, 0.5}</string> |
1165 </array> | 1164 </array> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 <key>twopiSeparation</key> | 1231 <key>twopiSeparation</key> |
1233 <real>0.0</real> | 1232 <real>0.0</real> |
1234 </dict> | 1233 </dict> |
1235 <key>LinksVisible</key> | 1234 <key>LinksVisible</key> |
1236 <string>NO</string> | 1235 <string>NO</string> |
1237 <key>MagnetsVisible</key> | 1236 <key>MagnetsVisible</key> |
1238 <string>NO</string> | 1237 <string>NO</string> |
1239 <key>MasterSheets</key> | 1238 <key>MasterSheets</key> |
1240 <array/> | 1239 <array/> |
1241 <key>ModificationDate</key> | 1240 <key>ModificationDate</key> |
1242 » <string>2013-02-13 23:15:50 +0000</string> | 1241 » <string>2013-10-10 16:45:15 +0000</string> |
1243 <key>Modifier</key> | 1242 <key>Modifier</key> |
1244 <string>Mary Campione</string> | 1243 <string>Mary Campione</string> |
1245 <key>NotesVisible</key> | 1244 <key>NotesVisible</key> |
1246 <string>NO</string> | 1245 <string>NO</string> |
1247 <key>Orientation</key> | 1246 <key>Orientation</key> |
1248 <integer>2</integer> | 1247 <integer>2</integer> |
1249 <key>OriginVisible</key> | 1248 <key>OriginVisible</key> |
1250 <string>NO</string> | 1249 <string>NO</string> |
1251 <key>PageBreaks</key> | 1250 <key>PageBreaks</key> |
1252 <string>YES</string> | 1251 <string>YES</string> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 <array> | 1338 <array> |
1340 <array> | 1339 <array> |
1341 <string>Canvas 1</string> | 1340 <string>Canvas 1</string> |
1342 <real>1</real> | 1341 <real>1</real> |
1343 <real>1</real> | 1342 <real>1</real> |
1344 </array> | 1343 </array> |
1345 </array> | 1344 </array> |
1346 </dict> | 1345 </dict> |
1347 </dict> | 1346 </dict> |
1348 </plist> | 1347 </plist> |
OLD | NEW |