Files
hush3/src/gtest/json_test_vectors.cpp
2016-08-22 00:36:12 -06:00

15 lines
241 B
C++

#include "json_test_vectors.h"
Array
read_json(const std::string& jsondata)
{
Value v;
if (!read_string(jsondata, v) || v.type() != array_type)
{
ADD_FAILURE();
return Array();
}
return v.get_array();
}