diff options
Diffstat (limited to 'modules/codec-json/c++')
-rw-r--r-- | modules/codec-json/c++/json.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/codec-json/c++/json.hpp b/modules/codec-json/c++/json.hpp index b77f328..034585c 100644 --- a/modules/codec-json/c++/json.hpp +++ b/modules/codec-json/c++/json.hpp @@ -117,6 +117,7 @@ public: error_or<void> decode(data<Schema, encode::Json>& from_decode, data<Schema, ToEncoding>& to_decode){ buffer_view buff_v{from_decode.get_buffer()}; + impl::json_helper::skip_whitespace(buff_v); auto eov = impl::json_decode<Schema, ToEncoding>::decode(buff_v, to_decode); if(eov.is_error()){ return std::move(eov.get_error()); |