Update jsonrpc++ to v1.4.0

This commit is contained in:
badaix 2024-06-10 20:51:37 +02:00
parent 0a50006c0c
commit c784e2526f

View file

@ -3,11 +3,11 @@
_( )/ ___) / \ ( ( \( _ \( _ \ / __)( ) ( ) _( )/ ___) / \ ( ( \( _ \( _ \ / __)( ) ( )
/ \) \\___ \( O )/ / ) / ) __/( (__(_ _)(_ _) / \) \\___ \( O )/ / ) / ) __/( (__(_ _)(_ _)
\____/(____/ \__/ \_)__)(__\_)(__) \___)(_) (_) \____/(____/ \__/ \_)__)(__\_)(__) \___)(_) (_)
version 1.3.3 version 1.4.0
https://github.com/badaix/jsonrpcpp https://github.com/badaix/jsonrpcpp
This file is part of jsonrpc++ This file is part of jsonrpc++
Copyright (C) 2017-2021 Johannes Pohl Copyright (C) 2017-2024 Johannes Pohl
This software may be modified and distributed under the terms This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details. of the MIT license. See the LICENSE file for details.
@ -22,7 +22,10 @@
#ifndef JSON_RPC_HPP #ifndef JSON_RPC_HPP
#define JSON_RPC_HPP #define JSON_RPC_HPP
// nlohmann-json
#include "common/json.hpp" #include "common/json.hpp"
// standard headers
#include <cstring> #include <cstring>
#include <exception> #include <exception>
#include <string> #include <string>
@ -1261,9 +1264,11 @@ inline entity_ptr Parser::do_parse(const std::string& json_str)
{ {
throw ParseErrorException(e.what()); throw ParseErrorException(e.what());
} }
catch (...)
{
return nullptr; return nullptr;
} }
}
inline entity_ptr Parser::do_parse_json(const Json& json) inline entity_ptr Parser::do_parse_json(const Json& json)
{ {