0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-05 10:17:30 -05:00
bitcoin-bitcoin-core/src/test/util/json.cpp

17 lines
424 B
C++

// Copyright (c) 2023 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/util/json.h>
#include <string>
#include <util/check.h>
#include <univalue.h>
UniValue read_json(const std::string& jsondata)
{
UniValue v;
Assert(v.read(jsondata) && v.isArray());
return v.get_array();
}