• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JSON_NO_IO
2
3```cpp
4#define JSON_NO_IO
5```
6
7When defined, headers `<cstdio>`, `<ios>`, `<iosfwd>`, `<istream>`, and `<ostream>` are not included and parse functions
8relying on these headers are excluded. This is relevant for environments where these I/O functions are disallowed for
9security reasons (e.g., Intel Software Guard Extensions (SGX)).
10
11## Default definition
12
13By default, `#!cpp JSON_NO_IO` is not defined.
14
15```cpp
16#undef JSON_NO_IO
17```
18
19## Examples
20
21??? example
22
23    The code below forces the library not to use the headers `<cstdio>`, `<ios>`, `<iosfwd>`, `<istream>`, and
24    `<ostream>`.
25
26    ```cpp
27    #define JSON_NO_IO 1
28    #include <nlohmann/json.hpp>
29
30    ...
31    ```
32
33## Version history
34
35- Added in version 3.10.0.
36