else if(query_info.m_URI ==
uri) \
{ \
response_info.m_mime_tipe = "application/json"; \
epee::serialization::portable_storage
ps; \
{ \
boost::value_initialized<epee::json_rpc::error_response> rsp; \
static_cast<epee::json_rpc::error_response&>(rsp).error.message =
"Parse error";
\ return true; \
ps.get_value(
"id", id_,
nullptr);
\ rsp.jsonrpc = "2.0"; \
rsp.error.code = -32600; \
rsp.error.message =
"Invalid Request";
\ return true; \
} \
uint64_t get_tick_count()
Definition: time_helper.h:82
bool get_value(const std::string &value_name, t_value &val, hsection hparent_section)
Definition: portable_storage.h:137
::std::string string
Definition: gtest-port.h:1097
boost::variant< uint64_t, uint32_t, uint16_t, uint8_t, int64_t, int32_t, int16_t, int8_t, double, bool, std::string, section, array_entry > storage_entry
Definition: portable_storage_base.h:161
bool store_t_to_json(t_struct &str_in, std::string &json_buff, size_t indent=0, bool insert_newlines=true)
Definition: portable_storage_template_helper.h:66
bool load_from_json(const std::string &source)
Definition: portable_storage.cpp:80
epee::serialization::portable_storage ps
Definition: load_from_binary.cpp:40
error
Tracks LMDB error codes.
Definition: error.h:44
#define true
Definition: stdbool.h:36
Definition: jsonrpc_structs.h:57
response< dummy_result, error > error_response
Definition: jsonrpc_structs.h:106