You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ _"really good"_ _"awesome project"_ _"very solid and very dependable"_ _"my team
69
69
70
70
## Get jsoncons
71
71
72
-
You can use the [vcpkg](https://github.com/Microsoft/vcpkg) platform library manager to install the [jsoncons package](https://github.com/microsoft/vcpkg/tree/main/ports/jsoncons).
72
+
You can use the [vcpkg](https://github.com/Microsoft/vcpkg) platform library manager to install the [jsoncons package](https://github.com/microsoft/vcpkg/tree/master/ports/jsoncons).
73
73
74
74
Or, download the [latest release](https://github.com/danielaparker/jsoncons/releases) and unpack the zip file. Copy the directory `include/jsoncons` to your `include` directory. If you wish to use extensions, copy `include/jsoncons_ext` as well.
75
75
@@ -96,9 +96,9 @@ If exceptions are disabled or if the compile time macro `JSONCONS_NO_EXCEPTIONS`
96
96
97
97
-[JSONTestSuite and JSON_checker test suites](https://danielaparker.github.io/json_benchmarks/)
98
98
99
-
-[Performance benchmarks with text and integers](https://github.com/danielaparker/json_benchmarks/blob/main/report/performance.md)
99
+
-[Performance benchmarks with text and integers](https://github.com/danielaparker/json_benchmarks/blob/master/report/performance.md)
100
100
101
-
-[Performance benchmarks with text and doubles](https://github.com/danielaparker/json_benchmarks/blob/main/report/performance_fp.md)
101
+
-[Performance benchmarks with text and doubles](https://github.com/danielaparker/json_benchmarks/blob/master/report/performance_fp.md)
102
102
103
103
[JSONPath Comparison](https://cburgmer.github.io/json-path-comparison/) shows how jsoncons JsonPath compares with other implementations
104
104
@@ -776,7 +776,7 @@ The jsoncons implementation of the Grisu3 algorithm for printing floating-point
776
776
The macro `JSONCONS_ALL_MEMBER_TRAITS` follows the approach taken by Martin York's [ThorsSerializer](https://github.com/Loki-Astari/ThorsSerializer)
777
777
778
778
The jsoncons implementations of BSON decimal128 to and from string,
779
-
and ObjectId to and from string, are based on the Apache 2 licensed [libbson](https://github.com/mongodb/mongo-c-driver/tree/main/src/libbson).
779
+
and ObjectId to and from string, are based on the Apache 2 licensed [libbson](https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson).
780
780
781
-
Special thanks to our [contributors](https://github.com/danielaparker/jsoncons/blob/main/acknowledgements.md)
781
+
Special thanks to our [contributors](https://github.com/danielaparker/jsoncons/blob/master/acknowledgements.md)
Copy file name to clipboardExpand all lines: doc/Pages/index.md
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ jsoncons is a C++, header-only library for constructing [JSON](http://www.json.o
27
27
data formats such as [CBOR](http://cbor.io/). For each supported data format, it enables you
28
28
to work with the data in a number of ways:
29
29
30
-
- As a variant-like data structure, [basic_json](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/basic_json.md)
30
+
- As a variant-like data structure, [basic_json](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json.md)
31
31
32
-
- As a strongly typed C++ data structure that implements [json_type_traits](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/json_type_traits.md)
32
+
- As a strongly typed C++ data structure that implements [json_type_traits](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/json_type_traits.md)
33
33
34
34
- With [cursor-level access](https://github.com/danielaparker/jsoncons/blob/doc/doc/ref/corelib/basic_json_cursor.md) to a stream of parse events, somewhat analogous to StAX pull parsing and push serializing
35
35
in the XML world.
@@ -40,7 +40,7 @@ But it also supports efficient access to the underlying data using StAX-style pu
40
40
And it supports incremental parsing into a user's preferred form, using
41
41
information about user types provided by specializations of [json_type_traits](doc/ref/corelib/json_type_traits.md).
42
42
43
-
The [jsoncons data model](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/data-model.md) supports the familiar JSON types - nulls,
43
+
The [jsoncons data model](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/data-model.md) supports the familiar JSON types - nulls,
44
44
booleans, numbers, strings, arrays, objects - plus byte strings. In addition, jsoncons
45
45
supports semantic tagging of datetimes, epoch times, big integers,
46
46
big decimals, big floats and binary encodings. This allows it to preserve these type semantics when parsing
@@ -73,9 +73,9 @@ std::string data = R"(
73
73
74
74
jsoncons allows you to work with the data in a number of ways:
75
75
76
-
- As a variant-like data structure, [basic_json](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/basic_json.md)
76
+
- As a variant-like data structure, [basic_json](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json.md)
77
77
78
-
- As a strongly typed C++ data structure that implements [json_type_traits](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/json_type_traits.md)
78
+
- As a strongly typed C++ data structure that implements [json_type_traits](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/json_type_traits.md)
79
79
80
80
- As a stream of parse events
81
81
@@ -142,10 +142,10 @@ Marilyn C, 0.9
142
142
#### As a strongly typed C++ data structure
143
143
144
144
jsoncons supports transforming JSON texts into C++ data structures.
145
-
The functions [decode_json](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/decode_json.md) and [encode_json](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/encode_json.md)
145
+
The functions [decode_json](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/decode_json.md) and [encode_json](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/encode_json.md)
146
146
convert strings or streams of JSON data to C++ data structures and back.
147
147
Decode and encode work for all C++ classes that have
defined. jsoncons already supports many types in the standard library,
150
150
and your own types will be supported too if you specialize `json_type_traits`
151
151
in the `jsoncons` namespace.
@@ -274,7 +274,7 @@ the enum values, and the macro `JSONCONS_ALL_CTOR_GETTER_TRAITS`
274
274
generates the code from the get functions and a constructor.
275
275
These macro declarations must be placed outside any namespace blocks.
276
276
277
-
See [examples](https://github.com/danielaparker/jsoncons/blob/main/doc/Examples.md#G1) for other ways of specializing `json_type_traits`.
277
+
See [examples](https://github.com/danielaparker/jsoncons/blob/master/doc/Examples.md#G1) for other ways of specializing `json_type_traits`.
278
278
279
279
#### With cursor-level access
280
280
@@ -665,7 +665,7 @@ produces
665
665
```
666
666
By default, within objects, arrays of scalar values are displayed on the same line.
667
667
668
-
The `pretty_print` function takes an optional second parameter, [basic_json_options](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/basic_json_options.md), that allows custom formatting of output.
668
+
The `pretty_print` function takes an optional second parameter, [basic_json_options](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_options.md), that allows custom formatting of output.
669
669
To display the array scalar values on a new line, set the `object_array_line_splits` property to `line_split_kind::new_line`. The code
670
670
```cpp
671
671
json_options options;
@@ -716,7 +716,7 @@ produces
716
716
<divid="A7"/>
717
717
### Filters
718
718
719
-
You can rename object member names with the built in filter [rename_object_key_filter](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/rename_object_key_filter.md)
719
+
You can rename object member names with the built in filter [rename_object_key_filter](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/rename_object_key_filter.md)
720
720
721
721
```cpp
722
722
#include<sstream>
@@ -755,7 +755,7 @@ Output:
755
755
(1) {"first":1,"second":2,"third":3,"fourth":4}
756
756
(2) {"first":1,"second":2,"third":3,"fourth":4}
757
757
```
758
-
Or define and use your own filters. See [basic_json_filter](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/basic_json_filter.md) for details.
758
+
Or define and use your own filters. See [basic_json_filter](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_filter.md) for details.
759
759
<divid="A8"/>
760
760
### JSONPath
761
761
@@ -863,22 +863,22 @@ Output:
863
863
<divid="A9"/>
864
864
### About jsoncons::json
865
865
866
-
The [json](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/json.md) class is an instantiation of the `basic_json` class template that uses `char` as the character type
866
+
The [json](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/json.md) class is an instantiation of the `basic_json` class template that uses `char` as the character type
867
867
and sorts object members in alphabetically order.
868
868
```cpp
869
869
typedef basic_json<char,
870
870
Policy = sorted_policy,
871
871
Allocator = std::allocator<char>> json;
872
872
```
873
-
If you prefer to retain the original insertion order, use [ojson](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/ojson.md) instead.
873
+
If you prefer to retain the original insertion order, use [ojson](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/ojson.md) instead.
874
874
875
-
The library includes an instantiation for wide characters as well, [wjson](https://github.com/danielaparker/jsoncons/blob/main/ref/doc/wjson.md)
875
+
The library includes an instantiation for wide characters as well, [wjson](https://github.com/danielaparker/jsoncons/blob/master/ref/doc/wjson.md)
876
876
```cpp
877
877
typedef basic_json<wchar_t,
878
878
Policy = sorted_policy,
879
879
Allocator = std::allocator<wchar_t>> wjson;
880
880
```
881
-
If you prefer to retain the original insertion order, use [wojson](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/wojson.md) instead.
881
+
If you prefer to retain the original insertion order, use [wojson](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/wojson.md) instead.
882
882
883
883
Note that the allocator type allows you to supply a custom allocator. For example, you can use the boost [fast_pool_allocator](http://www.boost.org/doc/libs/1_60_0/libs/pool/doc/html/boost/fast_pool_allocator.html):
884
884
```cpp
@@ -917,7 +917,7 @@ which prints
917
917
<div id="A11"/>
918
918
### ojson and wojson
919
919
920
-
The [ojson](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/ojson.md) ([wojson](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/wojson.md)) class is an instantiation of the `basic_json` class template that uses `char` (`wchar_t`) as the character type and keeps object members in their original order.
920
+
The [ojson](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/ojson.md) ([wojson](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/wojson.md)) class is an instantiation of the `basic_json` class template that uses `char` (`wchar_t`) as the character type and keeps object members in their original order.
921
921
```cpp
922
922
ojson o = ojson::parse(R"(
923
923
{
@@ -974,5 +974,5 @@ Output:
974
974
}
975
975
```
976
976
977
-
For more information, consult the latest [examples](https://github.com/danielaparker/jsoncons/blob/main/doc/Examples.md), [documentation](https://github.com/danielaparker/jsoncons/blob/main/doc/Reference.md) and [roadmap](https://github.com/danielaparker/jsoncons/blob/main/Roadmap.md).
977
+
For more information, consult the latest [examples](https://github.com/danielaparker/jsoncons/blob/master/doc/Examples.md), [documentation](https://github.com/danielaparker/jsoncons/blob/master/doc/Reference.md) and [roadmap](https://github.com/danielaparker/jsoncons/blob/master/Roadmap.md).
Copy file name to clipboardExpand all lines: doc/ref/corelib/decode_json.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
### jsoncons::decode_json
2
2
3
3
Decodes a JSON data format to a C++ data structure. `decode_json` will
4
-
work for all C++ classes that have [json_type_traits](https://github.com/danielaparker/jsoncons/blob/main/doc/ref/corelib/json_type_traits.md) defined.
4
+
work for all C++ classes that have [json_type_traits](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/json_type_traits.md) defined.
Copy file name to clipboardExpand all lines: doc/ref/jsonschema/jsonschema.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The jsonschema extension implements the JSON Schema [Draft 7](https://json-schem
4
4
5
5
### Compliance level
6
6
7
-
The jsoncons implementation passes all [draft 7 required tests](https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/main/tests/draft7).
7
+
The jsoncons implementation passes all [draft 7 required tests](https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/master/tests/draft7).
8
8
9
9
In addition, the validator understands the following optional [format types](https://json-schema.org/understanding-json-schema/reference/string.html#format):
0 commit comments