File: wjson.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 906 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
### jsoncons::wjson

```cpp
#include <jsoncons/json.hpp>

typedef basic_json<wchar_t,
                   Policy = sorted_policy,
                   Allocator = std::allocator<wchar_t>> wjson
```

The `wjson` class is an instantiation of the [basic_json](basic_json.md) class template that uses `wchar_t` as the character type. The order of an object's name/value pairs is not preserved, they are sorted alphabetically by name. If you want to preserve the original insertion order, use [wojson](wojson.md) instead.

### See also

[wojson](wojson.md) constructs a wide character json value that preserves the original insertion order of an object's name/value pairs  

[json](json.md) constructs a utf8 character json value that sorts name-value members alphabetically  

[ojson](ojson.md) constructs a utf8 character json value that preserves the original insertion order of an object's name/value pairs