forked from danielaparker/jsoncons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changelog.html
1338 lines (1255 loc) · 56.7 KB
/
Changelog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>Changelog</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: https://github.com/nicolahery/markdownpad-github */
/* RESET
=============================================================================*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
}
/* BODY
=============================================================================*/
body {
font-family: Helvetica, arial, freesans, clean, sans-serif;
font-size: 14px;
line-height: 1.6;
color: #333;
background-color: #fff;
padding: 20px;
max-width: 960px;
margin: 0 auto;
}
body>*:first-child {
margin-top: 0 !important;
}
body>*:last-child {
margin-bottom: 0 !important;
}
/* BLOCKS
=============================================================================*/
p, blockquote, ul, ol, dl, table, pre {
margin: 15px 0;
}
/* HEADERS
=============================================================================*/
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 10px;
padding: 0;
font-weight: bold;
-webkit-font-smoothing: antialiased;
}
h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
font-size: inherit;
}
h1 {
font-size: 28px;
color: #000;
}
h2 {
font-size: 24px;
border-bottom: 1px solid #ccc;
color: #000;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 14px;
}
h6 {
color: #777;
font-size: 14px;
}
body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
margin-top: 0;
padding-top: 0;
}
a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
margin-top: 0;
padding-top: 0;
}
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
margin-top: 10px;
}
/* LINKS
=============================================================================*/
a {
color: #4183C4;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* LISTS
=============================================================================*/
ul, ol {
padding-left: 30px;
}
ul li > :first-child,
ol li > :first-child,
ul li ul:first-of-type,
ol li ol:first-of-type,
ul li ol:first-of-type,
ol li ul:first-of-type {
margin-top: 0px;
}
ul ul, ul ol, ol ol, ol ul {
margin-bottom: 0;
}
dl {
padding: 0;
}
dl dt {
font-size: 14px;
font-weight: bold;
font-style: italic;
padding: 0;
margin: 15px 0 5px;
}
dl dt:first-child {
padding: 0;
}
dl dt>:first-child {
margin-top: 0px;
}
dl dt>:last-child {
margin-bottom: 0px;
}
dl dd {
margin: 0 0 15px;
padding: 0 15px;
}
dl dd>:first-child {
margin-top: 0px;
}
dl dd>:last-child {
margin-bottom: 0px;
}
/* CODE
=============================================================================*/
pre, code, tt {
font-size: 12px;
font-family: Consolas, "Liberation Mono", Courier, monospace;
}
code, tt {
margin: 0 0px;
padding: 0px 0px;
white-space: nowrap;
border: 1px solid #eaeaea;
background-color: #f8f8f8;
border-radius: 3px;
}
pre>code {
margin: 0;
padding: 0;
white-space: pre;
border: none;
background: transparent;
}
pre {
background-color: #f8f8f8;
border: 1px solid #ccc;
font-size: 13px;
line-height: 19px;
overflow: auto;
padding: 6px 10px;
border-radius: 3px;
}
pre code, pre tt {
background-color: transparent;
border: none;
}
kbd {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background-color: #DDDDDD;
background-image: linear-gradient(#F1F1F1, #DDDDDD);
background-repeat: repeat-x;
border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
border-image: none;
border-radius: 2px 2px 2px 2px;
border-style: solid;
border-width: 1px;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
line-height: 10px;
padding: 1px 4px;
}
/* QUOTES
=============================================================================*/
blockquote {
border-left: 4px solid #DDD;
padding: 0 15px;
color: #777;
}
blockquote>:first-child {
margin-top: 0px;
}
blockquote>:last-child {
margin-bottom: 0px;
}
/* HORIZONTAL RULES
=============================================================================*/
hr {
clear: both;
margin: 15px 0;
height: 0px;
overflow: hidden;
border: none;
background: transparent;
border-bottom: 4px solid #ddd;
padding: 0;
}
/* TABLES
=============================================================================*/
table th {
font-weight: bold;
}
table th, table td {
border: 1px solid #ccc;
padding: 6px 13px;
}
table tr {
border-top: 1px solid #ccc;
background-color: #fff;
}
table tr:nth-child(2n) {
background-color: #f8f8f8;
}
/* IMAGES
=============================================================================*/
img {
max-width: 100%
}
</style>
<style type="text/css">
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.pl-c {
color: #969896;
}
.pl-c1,.pl-mdh,.pl-mm,.pl-mp,.pl-mr,.pl-s1 .pl-v,.pl-s3,.pl-sc,.pl-sv {
color: #0086b3;
}
.pl-e,.pl-en {
color: #795da3;
}
.pl-s1 .pl-s2,.pl-smi,.pl-smp,.pl-stj,.pl-vo,.pl-vpf {
color: #333;
}
.pl-ent {
color: #63a35c;
}
.pl-k,.pl-s,.pl-st {
color: #a71d5d;
}
.pl-pds,.pl-s1,.pl-s1 .pl-pse .pl-s2,.pl-sr,.pl-sr .pl-cce,.pl-sr .pl-sra,.pl-sr .pl-sre,.pl-src,.pl-v {
color: #df5000;
}
.pl-id {
color: #b52a1d;
}
.pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.pl-ml {
color: #693a17;
}
.pl-mh,.pl-mh .pl-en,.pl-ms {
color: #1d3e81;
font-weight: bold;
}
.pl-mq {
color: #008080;
}
.pl-mi {
color: #333;
font-style: italic;
}
.pl-mb {
color: #333;
font-weight: bold;
}
.pl-md,.pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.pl-mdht,.pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.pl-mdr {
color: #795da3;
font-weight: bold;
}
.pl-mo {
color: #1d3e81;
}
.task-list {
padding-left:10px;
margin-bottom:0;
}
.task-list li {
margin-left: 20px;
}
.task-list-item {
list-style-type:none;
padding-left:10px;
}
.task-list-item label {
font-weight:400;
}
.task-list-item.enabled label {
cursor:pointer;
}
.task-list-item+.task-list-item {
margin-top:3px;
}
.task-list-item-checkbox {
display:inline-block;
margin-left:-20px;
margin-right:3px;
vertical-align:1px;
}
</style>
</head>
<body>
<h2>0.99.6</h2>
<p>Removed features:</p>
<ul>
<li>The jsonx extension has been removed</li>
</ul>
<p>New feature</p>
<ul>
<li>The new binary extension supports encoding to and decoding from the MessagePack binary serialization format.</li>
</ul>
<p>Non-breaking changes</p>
<ul>
<li>Support for stateful allocators</li>
<li>json function object_range() now returns a pair of RandomAccessIterator (previously BidirectionalIterator)</li>
<li>json operator [size_t i] applied to a json object now returns the ith object (previously threw)</li>
</ul>
<p>Breaking change (if you've implemented your own input and output handlers)</p>
<p>In basic_json_input_handler, the virtual functions</p>
<div class="highlight highlight-source-c++"><pre><span class="pl-k">virtual</span> <span class="pl-k">void</span> <span class="pl-en">do_name</span>(<span class="pl-k">const</span> CharT* value, <span class="pl-c1">size_t</span> length,
<span class="pl-k">const</span> basic_parsing_context<CharT>& context)
virtual void do_string_value(<span class="pl-k">const</span> CharT* value, <span class="pl-c1">size_t</span> length,
<span class="pl-k">const</span> basic_parsing_context<CharT>& context)</pre></div>
<p>have been changed to</p>
<div class="highlight highlight-source-c++"><pre><span class="pl-k">virtual</span> <span class="pl-k">void</span> <span class="pl-en">do_name</span>(string_view_type val,
<span class="pl-k">const</span> basic_parsing_context<CharT>& context)
virtual void do_string_value(string_view_type val,
<span class="pl-k">const</span> basic_parsing_context<CharT>& context) </pre></div>
<p>In basic_json_output_handler, the virtual functions</p>
<div class="highlight highlight-source-c++"><pre><span class="pl-k">virtual</span> <span class="pl-k">void</span> <span class="pl-en">do_name</span>(<span class="pl-k">const</span> CharT* value, <span class="pl-c1">size_t</span> length)
virtual void do_string_value(<span class="pl-k">const</span> CharT* value, <span class="pl-c1">size_t</span> length) </pre></div>
<p>have been changed to</p>
<div class="highlight highlight-source-c++"><pre><span class="pl-k">virtual</span> <span class="pl-k">void</span> <span class="pl-en">do_name</span>(string_view_type val)
virtual void do_string_value(string_view_type val)</pre></div>
<h2>0.99.5</h2>
<ul>
<li>Validations added to utf8 and utf16 string parsing to pass all <a href="https://github.com/nst/JSONTestSuite">JSONTestSuite</a> tests</li>
<li>The name <code>json_encoder</code> introduced in 0.99.4 has been changed to <code>json_decoder</code>. Rationale: consistencty with common usage (encoding and serialization, decoding and deserialization)</li>
</ul>
<h2>0.99.4a</h2>
<p>Fixes Issue #101, In json.hpp, line 3376 change "char__type" to "char_type"<br>
Fixes Issue #102, include cstring and json_error_category.hpp in json.hpp</p>
<h2>0.99.4</h2>
<p>Changes</p>
<ul>
<li>The deprecated class <code>json::any</code> has been removed.</li>
<li>The jsoncons <code>boost</code> extension has been removed. That extension contained a sample <code>json_type_traits</code> specialization for <code>boost::gregorian::date</code>, which may still be found in the "Type Extensibility" tutorial.</li>
<li>The member <code>json_type_traits</code> member function <code>assign</code> has been removed and replaced by <code>to_json</code>. if you have implemented your own type specializations, you will also have to change your <code>assign</code> function to <code>to_json</code>.</li>
<li><code>json_type_traits</code> specializations no longer require the <code>is_assignable</code> data member</li>
</ul>
<p>Non-breaking name changes</p>
<ul>
<li>The names <code>json_deserializer</code>,<code>ojson_deserializer</code>,<code>wjson_deserializer</code>,<code>owjson_deserializer</code> have been deprecated (they still work) and replaced by <code>json_encoder<json></code>, <code>json_encoder<ojson></code>, <code>json_encoder<wjson></code> and <code>json_encoder<owjson></code>.</li>
<li>The name <code>output_format</code> has been deprecated (still works) and renamed to <code>serialization_options</code>.</li>
<li>The name <code>wojson</code> has been deprecated (still works) and renamed to <code>owjson</code>.</li>
<li>The <code>json_filter</code> member function <code>input_handler</code> has been deprecated (still works) and renamed to <code>downstream_handler</code>.</li>
<li>The name <code>elements</code> has been deprecated (still works) and renamed to <code>owjson</code>.</li>
<li>The <code>json</code> member function <code>members()</code> has been deprecated (still works) and renamed to <code>object_range()</code>.</li>
<li>The <code>json</code> member function <code>elements()</code> has been deprecated (still works) and renamed to <code>array_range()</code>.</li>
<li>The <code>json</code> member_type function <code>name()</code> has been deprecated (still works) and renamed to <code>key()</code>. Rationale: consistency with more general underlying storage classes.</li>
</ul>
<p>New features</p>
<ul>
<li><code>json_filter</code> instances can be passed to functions that take a <code>json_output_handler</code> argument (previously only a <code>json_input_handler</code> argument)</li>
<li>New <code>jsonpath</code> function <code>json_replace</code> that searches for all values that match a JsonPath expression and replaces them with a specified value.</li>
<li><code>json</code> class has new method <code>has_key()</code>, which returns <code>true</code> if a <code>json</code> value is an object and has a member with that key</li>
<li>New filter class <code>rename_name</code> allows search and replace of JSON object names</li>
</ul>
<h2>0.99.3a</h2>
<p>Changes</p>
<p>The <code>json</code> initializer-list constructor has been removed, it gives inconsistent results when an initializer has zero elements, or one element of the type being initialized (<code>json</code>). Please replace</p>
<p><code>json j = {1,2,3}</code> with <code>json j = json::array{1,2,3}</code>, and</p>
<p><code>json j = {{1,2,3},{4,5,6}}</code> with <code>json j = json::array{json::array{1,2,3},json::array{4,5,6}}</code></p>
<ul>
<li>Initializer-list constructors are now supported in <code>json::object</code> as well as <code>json::array</code>, e.g.</li>
</ul>
<div class="highlight highlight-source-c++"><pre>json j = json::object{{<span class="pl-s"><span class="pl-pds">"</span>first<span class="pl-pds">"</span></span>,<span class="pl-c1">1</span>},{<span class="pl-s"><span class="pl-pds">"</span>second<span class="pl-pds">"</span></span>,json::array{<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>}}};</pre></div>
<ul>
<li>
<p>json::any has been deprecated and will be removed in the future</p>
</li>
<li>
<p>The json method <code>to_stream</code> has been renamed to <code>write</code>, the old name is still supported.</p>
</li>
<li>
<p><code>output_format</code> <code>object_array_block_option</code>, <code>array_array_block_option</code> functions have been deprecated and replaced by<br>
<code>object_array_split_lines</code>, <code>array_array_split_lines</code> functions.</p>
</li>
</ul>
<p>Enhancements</p>
<ul>
<li>
<p>A new method <code>get_with_default</code>, with return type that of the default, has been added to <code>json</code></p>
</li>
<li>
<p>A new template parameter, <code>JsonTraits</code>, has been added to the <code>basic_json</code> class template.</p>
</li>
<li>
<p>New instantiations of <code>basic_json</code>, <code>ojson</code> and <code>wojson</code>, have been added for users who wish to preserve the alphabetical sort of parsed json text and to insert new members in arbitrary name order.</p>
</li>
<li>
<p>Added support for <code>json</code> <code>is<T></code>, <code>as<T></code>, constructor, and assignment operator for any sequence container (<code>std::array</code>, <code>std::vector</code>, <code>std::deque</code>, <code>std::forward_list</code>, <code>std::list</code>) whose values are assignable to JSON types (e.g., ints, doubles, bools, strings, STL containers of same) and for associative containers (<code>std::set</code>, <code>std::multiset</code>, <code>std::unordered_set</code>, <code>std::unordered_multiset</code>.)</p>
</li>
<li>
<p>Added static method <code>null()</code> to <code>json</code> class to return null value</p>
</li>
<li>
<p>A new extension jsonx that supports serializing JSON values to <a href="http://www.ibm.com/support/knowledgecenter/SS9H2Y_7.5.0/com.ibm.dp.doc/json_jsonx.html">JSONx</a> (XML)</p>
</li>
<li>
<p>json parser will skip <code>bom</code> in input if present</p>
</li>
</ul>
<p>Fixes:</p>
<ul>
<li>
<p>Fixes to the <code>jsonpath</code> extension, including the union operator and applying index operations to string values</p>
</li>
<li>
<p>Fixes to remove warnings and issues reported by VS2015 with 4-th warnings level, PVS-Studio static analyzer tool, and UBSAN.</p>
</li>
</ul>
<h2>0.99.2</h2>
<ul>
<li>
<p>Included workaround for a C++11 issue in GCC 4.8, contributed by Alex Merry</p>
</li>
<li>
<p>Fixed operator== so that json() == json(json::object())</p>
</li>
<li>
<p>Fixed issue with <code>json</code> assignment to initializer list</p>
</li>
<li>
<p>Fixed issue with assignment to empty json object with multiple keys, e.g.</p>
<p>json val;<br>
val["key1"]["key2"] = 1;</p>
</li>
</ul>
<h2>0.99.1</h2>
<ul>
<li>Fix to json_filter class</li>
<li>Fix to readme_examples</li>
</ul>
<h2>0.99</h2>
<ul>
<li>Fixes to deprecated json parse functions (deprecated, but still supposed to work)</li>
<li>The Visual C++ specific implementation for reading floating point numbers should have freed a <code>_locale_t</code> object, fixed</li>
<li>Added <code>json_type_traits</code> specialization to support assignment from non-const strings</li>
<li>When parsing fractional numbers in text, floating point number precision is retained, and made available to serialization to preserve round-trip. The default output precision has been changed from 15 to 16.</li>
<li>Added json <code>std::initializer_list</code> constructor for constructing arrays</li>
<li>The deprecated json member constants null, an_object, and an_array have been removed</li>
<li>Microsoft VC++ versions earlier than 2013 are no longer supported</li>
</ul>
<h2>0.98.4</h2>
<ul>
<li>Fixes issues with compilation with clang</li>
</ul>
<h2>0.98.3</h2>
<p>New features</p>
<ul>
<li>Supports <a href="http://goessner.net/articles/JsonPath/">Stefan Goessner's JsonPath</a>. See example below and <a href="https://github.com/danielaparker/jsoncons/wiki/json_query">documentation</a>.</li>
<li>json member function <code>find</code> added</li>
<li>json member function <code>count</code> added</li>
<li>json array range accessor <code>elements()</code> added, which supports range-based for loops over json arrays, and replaces <code>begin_elements</code> and <code>end_elements</code></li>
<li>json object range accessor <code>members()</code> added, which supports range-based for loops over json objects, and replaces <code>begin_members</code> and <code>end_members</code></li>
<li>New version of json <code>add</code> member function that takes a parameter <code>array_iterator</code></li>
<li>json member function <code>shrink_to_fit</code> added</li>
</ul>
<p>API Changes</p>
<ul>
<li>
<p>The json internal representation of signed and unsigned integers has been changed from <code>long long</code> and <code>unsigned long long</code> to <code>int64_t</code> and <code>uint64_t</code>. This should not impact you unless you've implemented your own <code>json_input_handler</code> or <code>json_output_handler</code>, in which case you'll need to change your <code>json_input_handler</code> function signatures</p>
<p>void do_longlong_value(long long value, const basic_parsing_context& context) override<br>
void do_ulonglong_integer_value(unsigned long long value, const basic_parsing_context& context) override</p>
</li>
</ul>
<p>to</p>
<pre><code>void do_integer_value(int64_t value, const basic_parsing_context<Char>& context) override
void do_uinteger_value(uint64_t value, const basic_parsing_context<Char>& context) override
</code></pre>
<p>and your <code>json_output_handler</code> function signatures from</p>
<pre><code>void do_longlong_value(long long value) override
void do_ulonglong_integer_value(unsigned long long value) override
</code></pre>
<p>to</p>
<pre><code>void do_integer_value(int64_t value) override
void do_uinteger_value(uint64_t value) override
</code></pre>
<ul>
<li><code>output_format</code> drops support for <code>floatfield</code> property</li>
</ul>
<p>Non-beaking API Changes</p>
<ul>
<li>remove_range has been deprecated, use erase(array_iterator first, array_iterator last) instead</li>
<li>remove has been deprecated, use erase(const std::string& name ) instead</li>
<li><code>json::parse_string</code> has been renamed to <code>json::parse</code>, <code>parse_string</code> is deprecated but still works</li>
<li><code>json member function</code>is_empty<code>has been renamed to</code>empty<code>,</code>is_empty` is deprecated but still works. Rationale: consistency with C++ containers</li>
<li>json member functions <code>begin_elements</code> and <code>end_elements</code> have been deprecated, instead use <code>elements().begin()</code> and <code>elements.end()</code></li>
<li>json member functions <code>begin_members</code> and <code>end_members</code> have been deprecated, instead use <code>members().begin()</code> and <code>members.end()</code></li>
<li>json member function <code>has_member</code> has been deprecated, instead use <code>count</code>. Rationale: consistency with C++ containers</li>
<li>json member function <code>remove_member</code> has been deprecated, instead use <code>remove</code>. Rationale: only member function left with _element or _member suffix</li>
<li>json_parse_exception renamed to parse_exception, json_parse_exception typedef to parse_exception</li>
<li>json::parse(std::istream& is) renamed to json::parse_stream. json::parse(std::istream is) is deprecated but still works.</li>
</ul>
<h2>0.98.2 Release</h2>
<ul>
<li><code>json</code> constructor is now templated, so constructors now accept extended types</li>
<li>Following <a href="http://www.ietf.org/rfc/rfc7159.txt">RFC7159</a>, <code>json_parser</code> now accepts any JSON value, removing the constraint that it be an object or array.</li>
<li>The member <code>json_type_traits</code> member functions <code>is</code>, <code>as</code>, and <code>assign</code> have been changed to static functions. if you have implemented your own type specializations, you will also have to change your <code>is</code>, <code>as</code> and <code>assign</code> functions to be static.</li>
<li>Removed json deprecated functions <code>custom_data</code>, <code>set_custom_data</code>, <code>add_custom_data</code></li>
<li><code>json_reader</code> member function <code>max_depth</code> has been renamed to <code>max_nesting_depth</code>, the former name is still supported.</li>
<li><code>json</code> member function <code>resize_array</code> has been renamed to <code>resize</code>, the former name is still supported.</li>
</ul>
<p>jsoncons supports alternative ways for constructing <code>null</code>, <code>object</code>, and <code>array</code> values.</p>
<p>null:</p>
<pre><code>json a = jsoncons::null_type(); // Using type constructor
json b = json::null_type(); // Using alias
json c(json::null); // From static data member prototype
</code></pre>
<p>object:</p>
<pre><code>json a(); // Default is empty object
json b = json::object(); // Using type constructor
json c(json::an_object); // From static data member prototype
</code></pre>
<p>array:</p>
<pre><code>json a = json::array(); // Using type constructor
json b = json::make_array(); // Using factory method
json c(json::an_array); // From static data member prototype
</code></pre>
<p>Since C++ has possible order issues with static data members, the jsoncons examples and documentation have been changed to consistently use the other ways, and <code>json::null</code>, <code>json::an_object</code> and <code>json::an_array</code> have been, while still usable, deprecated.</p>
<h2>0.98.1 Release</h2>
<ul>
<li>Enhances parser for CSV files that outputs JSON, see example below.</li>
<li>Adds <code>get_result</code> member function to <code>json_deserializer</code>, which returns the json value <code>v</code> stored in a <code>json_deserializer</code> as <code>std::move(v)</code>. The <code>root()</code> member function has been deprecated but is still supported.</li>
<li>Adds <code>is_valid</code> member function to <code>json_deserializer</code></li>
<li>Enhances json::any class, adds type checks when casting back to original value</li>
<li>Fixes some warning messages</li>
</ul>
<h2>0.98 Release</h2>
<p>Bug fixes:</p>
<ul>
<li>Fixes the noexcept specification (required for Visual Studio 2015 and later.) Fix<br>
contributed by Rupert Steel.</li>
<li>Fixes bug with proxy operator== when comparing object member values,<br>
such as in val["field"] == json("abc")</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>
<p>Refines error codes and improves error messages</p>
</li>
<li>
<p>Renames <code>json_reader</code> method <code>read</code> to <code>read_next</code>, reflecting the fact that it supports reading a sequence of JSON texts from a stream. The<br>
former name is deprecated but still works.</p>
</li>
<li>
<p>Adds <code>json_reader</code> method <code>check_done</code> that throws if there are unconsumed non-whitespace characters after one or more calls to <code>read_next</code>.</p>
</li>
<li>
<p>Adds getter and setter <code>max_depth</code> methods to allow setting the maximum JSON parse tree depth if desired, by default<br>
it is arbitrarily large (limited by heap memory.)</p>
</li>
<li>
<p>Modifies <code>json</code> static methods <code>parse_string</code>, <code>parse_file</code>, and <code>parse_stream</code> behaviour to throw if there are unconsumed non-whitespace characters after reading one JSON text.</p>
</li>
</ul>
<p>Changes to extensions:</p>
<ul>
<li>Changes the top level namespace for the extensions from <code>jsoncons_ext</code> to <code>jsoncons</code>, e.g. <code>jsoncons_ext::csv::csv_reader</code> becomes <code>jsoncons::csv::csv_reader</code></li>
<li>Modifies csv_reader and csv_serializer so that the constructors are passed parameters in a <code>csv_parameters</code> object rather than a <code>json</code> object.</li>
<li>Adds more options to csv_reader</li>
</ul>
<h2>0.97.2 Release</h2>
<ul>
<li>
<p>Incorporates test suite files from <a href="http://www.json.org/JSON_checker/">http://www.json.org/JSON_checker/</a> into test suite</p>
</li>
<li>
<p>The <code>jsoncons</code> parser accepts all of the JSON_checker files that its supposed to accept.</p>
</li>
<li>
<p>Failures to reject incorrect exponential notation (e.g. [0e+-1]) have been fixed.</p>
</li>
<li>
<p>The <code>jsoncons</code> parser now rejects all of the JSON_checker files that its supposed to reject except ones with stuff after the end of the document, e.g.</p>
<p>["Extra close"]]</p>
<p>(Currently the <code>jsoncons</code> parser stops after reading a complete JSON text, and supports reading a sequence of JSON texts.)</p>
</li>
<li>
<p>Incorporates a fix to operator== on json objects, contributed by Alex Merry</p>
</li>
</ul>
<h2>0.97.1 Release</h2>
<ul>
<li>"Transforming JSON with filters" example fixed</li>
<li>Added a class-specific in-place new to the json class that is implemented in terms of the global version (required to create json objects with placement new operator.)</li>
<li>Reorganized header files, removing unnecessary includes.</li>
<li>Incorporates validation contributed by Alex Merry for ensuring that there is an object or array on parse head.</li>
<li>Incorporates fix contributed by Milan Burda for “Switch case is in protected scope” clang build error</li>
</ul>
<h2>0.97 Release</h2>
<ul>
<li>Reversion of 0.96 change:</li>
</ul>
<p>The virtual methods <code>do_float_value</code>, <code>do_integer_value</code>, and <code>do_unsigned_value</code> of <code>json_input_handler</code> and <code>json_outputhandler</code> have been restored to <code>do_double_value</code>, <code>do_longlong_value</code> and <code>do_ulonglong_value</code>, and their typedefed parameter types <code>float_type</code>, <code>integer_type</code>, and <code>unsigned_type</code> have been restored to <code>double</code>, <code>long long</code>, and <code>unsigned long long</code>.</p>
<p>The rationale for this reversion is that the change doesn't really help to make the software more flexible, and that it's better to leave out the typedefs. There will be future enhancements to support greater numeric precision, but these will not affect the current method signatures.</p>
<ul>
<li>Fix for "unused variable" warning message</li>
</ul>
<h2>0.96 Release</h2>
<p>This release includes breaking changes to interfaces. Going forward, the interfaces are expected to be stable.</p>
<p>Breaking changes:</p>
<ul>
<li>
<p>Renamed <code>error_handler</code> to <code>parse_error_handler</code>.</p>
</li>
<li>
<p>Renamed namespace <code>json_parser_error</code> to <code>json_parser_errc</code></p>
</li>
<li>
<p>Renamed <code>value_adapter</code> to <code>json_type_traits</code>, if you have implemented your own type specializations,<br>
you will have to rename <code>value_adapter</code> also.</p>
</li>
<li>
<p>Only json arrays now support <code>operator[](size_t)</code> to loop over values, this is no longer supported for <code>json</code> objects. Use a json object iterator instead.</p>
</li>
<li>
<p>The virtual methods <code>do_double_value</code>, <code>do_integer_value</code> and <code>do_uinteger_value</code> of <code>json_input_handler</code> and <code>json_outputhandler</code> have been renamed to <code>do_float_value</code>, <code>do_integer_value</code>, and <code>do_unsigned_value</code>,<br>
and their parameters have been changed from <code>double</code>, <code>long long</code>, and <code>unsigned long long</code> to typedefs <code>float_type</code>, <code>integer_type</code>, and <code>unsigned_type</code>.<br>
The rationale for this change is to allow different configurations for internal number types (reversed in 0.97.)</p>
</li>
</ul>
<p>General changes</p>
<ul>
<li>
<p><code>json</code> member function <code>begin_object</code> now returns a bidirectional iterator rather than a random access iterator.</p>
</li>
<li>
<p>Static singleton <code>instance</code> methods have been added to <code>default_parse_error_handler</code><br>
and <code>empty_json_input_handler</code>.</p>
</li>
<li>
<p>Added to the <code>json</code> class overloaded static methods parse, parse_string<br>
and parse_file that take a <code>parse_error_handler</code> as a parameter.</p>
</li>
<li>
<p>Added methods <code>last_char()</code> and <code>eof()</code> to <code>parsing_context</code>.</p>
</li>
<li>
<p>Enhancements to json parsing and json parse event error notification.</p>
</li>
<li>
<p>Added to <code>json_input_handler</code> and <code>json_output_handler</code> a non virtual method <code>value</code> that takes a null terminated string.</p>
</li>
<li>
<p>Added methods <code>is_integer</code>, <code>is_unsigned</code> and <code>is_float</code> to <code>json</code> to replace <code>is_longlong</code>, <code>is_ulonglong</code> and <code>is_double</code>, which have been deprecated.</p>
</li>
<li>
<p>Added methods <code>as_integer</code>, <code>as_unsigned</code> and <code>as_float</code> to <code>json</code> to replace <code>is_longlong</code>, <code>is_ulonglong</code> and <code>is_double</code>, which have been deprecated.</p>
</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>
<p>Fixed issue with column number reported by json_reader</p>
</li>
<li>
<p>Where &s[0] and s.length() were passed to methods, &s[0] has been replaced with s.c_str().<br>
While this shouldn't be an issue on most implementations, VS throws an exception in debug modes when the string has length zero.</p>
</li>
<li>
<p>Fixes two issues in 0.95 reported by Alex Merry that caused errors with GCC: a superfluous typename has been removed in csv_serializer.hpp, and a JSONCONS_NOEXCEPT specifier has been added to the json_error_category_impl name method.</p>
</li>
<li>
<p>Fixed a number of typename issues in the 0.96 candidate identifed by Ignatov Serguei.</p>
</li>
<li>
<p>Fixes issues with testsuite cmake and scons reported by Alex Merry and Ignatov Serguei</p>
</li>
</ul>
<h2>0.95</h2>
<p>Enhancements:</p>
<ul>
<li>
<p>Added template method <code>any_cast</code> to <code>json</code> class.</p>
</li>
<li>
<p>The allocator type parameter in basic_json is now supported, it allows you to supply a<br>
custom allocator for dynamically allocated, fixed size small objects in the json container.<br>
The allocator type is not used for structures including vectors and strings that use large<br>
or variable amounts of memory, these always use the default allocators.</p>
</li>
</ul>
<p>Non-breaking Change:</p>
<ul>
<li><code>json_filter</code> method <code>parent</code> has been renamed to <code>input_handler</code> (old name still works)</li>
</ul>
<p>Breaking change (if you've implemented your own input and output handlers, or if you've<br>
passed json events to input and output handlers directly):</p>
<ul>
<li>
<p>The input handler virtual method<br>
<code>name(const std::string& name, const parsing_context& context)</code><br>
has been changed to<br>
<code>do_name(const char* p, size_t length, const parsing_context& context)</code></p>
</li>
<li>
<p>The output handler virtual method<br>
<code>name(const std::string& name)</code><br>
has been changed to<br>
<code>do_name(const char* p, size_t length)</code></p>
</li>
<li>
<p>The input handler virtual method<br>
<code>string_value(const std::string& value, const parsing_context& context)</code><br>
has been changed to<br>
<code>do_string_value(const char* p, size_t length, const parsing_context& context)</code></p>
</li>
<li>
<p>The output handler virtual method<br>
<code>string_value(const std::string& value)</code><br>
has been changed to<br>
<code>do_string_value(const char* p, size_t length)</code></p>
</li>
</ul>
<p>The rationale for the method parameter changes is to allow different internal<br>
representations of strings but preserve efficiency.</p>
<ul>
<li>
<p>The input and output handler virtual implementation methods begin_json, end_json,<br>
begin_object, end_object, begin_array, end_array, name, string_value,<br>
longlong_value, ulonglong_value, double_value, bool_value and null_value<br>
have been renamed to do_begin_json, do_end_json, do_begin_object, do_end_object,<br>
do_begin_array, do_end_array, do_name, do_string_value, do_longlong_value,<br>
do_ulonglong_value, do_double_value, do_bool_value and do_null_value and have been<br>
made private.</p>
</li>
<li>
<p>Public non-virtual interface methods begin_json, end_json,<br>
begin_object, end_object, begin_array, end_array, name<br>
have been added to json_input_handler and json_output_handler.</p>
</li>
</ul>
<p>The rationale for these changes is to follow best C++ practices by making the<br>
json_input_handler and json_output_handler interfaces public non-virtual and<br>
the implementations private virtual. Refer to the documentation and tutorials for details.</p>
<ul>
<li>The error_handler virtual implementation methods have been renamed to <code>do_warning</code> and<br>
<code>do_error</code>, and made private. Non virtual public interface methods <code>warning</code> and <code>error</code><br>
have been added. Error handling now leverages <code>std::error_code</code> to communicate parser<br>
error events in an extendable way.</li>
</ul>
<p>Bug fixes:</p>
<ul>
<li>Fixed bug in csv_reader</li>
</ul>
<h2>0.94.1</h2>
<p>Bug fixes:</p>
<ul>
<li>Incorporates fix from Alex Merry for comparison of json objects</li>
</ul>
<h2>0.94</h2>
<p>Bug fixes</p>
<ul>
<li>Incorporates contributions from Cory Fields for silencing some compiler warnings</li>
<li>Fixes bug reported by Vitaliy Gusev in json object operator[size_t]</li>
<li>Fixes bug in json is_empty method for empty objects</li>
</ul>
<p>Changes</p>
<ul>
<li>json constructors that take string, double etc. are now declared explicit (assignments and defaults to get and make_array methods have their own implementation and do not depend on implicit constructors.)</li>
<li>make_multi_array renamed to make_array (old name is still supported)</li>
<li>Previous versions supported any type values through special methods set_custom_data, add_custom_data, and custom_data. This version introduces a new type json::any that wraps any values and works with the usual accessors set, add and as, so the specialized methods are no longer required.</li>
</ul>
<p>Enhancements</p>
<ul>
<li>json get method with default value now accepts extended types as defaults</li>
<li>json make_array method with default value now accepts extended types as defaults</li>
</ul>
<p>New extensions</p>
<ul>
<li>Added jsoncons_ext/boost/type_extensions.hpp to collect<br>
extensions traits for boost types, in particular, for<br>
boost::gregorian dates.</li>
</ul>
<h2>0.93 Release</h2>
<p>New features</p>
<ul>
<li>Supports wide character strings and streams with wjson, wjson_reader etc. Assumes UTF16 encoding if sizeof(wchar_t)=2 and UTF32 encoding if sizeof(wchar_t)=4.</li>
<li>The empty class null_type is added to the jsoncons namespace, it replaces the member type json::null_type (json::null_type is typedefed to jsoncons::null_type for backward compatibility.)</li>
</ul>
<p>Defect fixes:</p>
<ul>
<li>The ascii character 0x7f (del) was not being considered a control character to be escaped, this is fixed.</li>
<li>Fixed two issues with serialization when the output format property escape_all_non_ascii is enabled. One, the individual bytes were being checked if they were non ascii, rather than first converting to a codepoint. Two, continuations weren't being handled when decoding.</li>
</ul>
<h2>0.92a Release</h2>
<p>Includes contributed updates for valid compilation and execution in gcc and clang environments</p>
<h2>0.92 Release</h2>
<p>Breaking change (but only if you have subclassed json_input_handler or json_output_handler)</p>
<ul>
<li>For consistency with other names, the input and output handler methods new to 0.91 - value_string, value_double, value_longlong, value_ulonglong and value_bool - have been renamed to string_value, double_value, longlong_value, ulonglong_value and bool_value.</li>
</ul>
<p>Non breaking changes (previous features are deprecated but still work)</p>
<ul>
<li>
<p>name_value_pair has been renamed to member_type (typedefed to previous name.)</p>
</li>
<li>
<p>as_string(output_format format) has been deprecated, use the existing to_string(output_format format) instead</p>
</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>json now has extensibilty, you can access and modify json values with new types, see the tutorial Extensibility</li>
</ul>
<p>Preparation for allocator support:</p>
<ul>
<li>The basic_json and related classes now have an Storage template parameter, which is currently just a placeholder, but will later provide a hook to allow users to control how json storage is allocated. This addition is transparent to users of the json and related classes.</li>
</ul>
<h2>0.91 Release</h2>
<p>This release should be largely backwards compatible with 0.90 and 0.83 with two exceptions:</p>
<ol>
<li>
<p>If you have used object iterators, you will need to replace uses of std::pair with name_value_pair, in particular, first becomes name() and second becomes value().</p>
</li>
<li>