| 13 | |
| 14 | namespace NJson { |
| 15 | struct TJsonReaderConfig { |
| 16 | TJsonReaderConfig(); |
| 17 | |
| 18 | bool UseIterativeParser = false; |
| 19 | // js-style comments (both // and /**/) |
| 20 | bool AllowComments = false; |
| 21 | bool DontValidateUtf8 = false; |
| 22 | bool AllowEscapedApostrophe = false; |
| 23 | // Allow to read Nan and Inf as integer values |
| 24 | bool AllowReadNanInf = false; |
| 25 | |
| 26 | ui64 MaxDepth = 0; |
| 27 | |
| 28 | void SetBufferSize(size_t bufferSize); |
| 29 | size_t GetBufferSize() const; |
| 30 | |
| 31 | private: |
| 32 | size_t BufferSize; |
| 33 | }; |
| 34 | |
| 35 | /* |
| 36 | The return value of the following functions indicates whether the JSON parsing is successful |
no outgoing calls
no test coverage detected