diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-02 17:48:37 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-02 17:48:37 +0200 |
commit | 57c8ff05f4b19762b6915aac83c1245a54ee7f42 (patch) | |
tree | 61bde348a73ecd69f022802277bf6dd0ef33f03b /modules/codec-json | |
parent | 3213bef6aa2b87cf8ea207e53ddf1b064539b46a (diff) |
tools, codec-json: Initial whitespace is also valid json. Also fixed
reading for cli manip as well
Diffstat (limited to 'modules/codec-json')
-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()); |