Lines Matching refs:json

31 static Error intFromJsonTemplate(const json::Value &V, T &Out) {  in intFromJsonTemplate()
43 static Error fromJson(const json::Value &V, bool &Out) { in fromJson()
51 static Error fromJson(const json::Value &V, double &Out) { in fromJson()
59 static Error fromJson(const json::Value &V, std::string &Out) { in fromJson()
67 static Error fromJson(const json::Value &V, uint32_t &Out) { in fromJson()
71 static Error fromJson(const json::Value &V, int &Out) { in fromJson()
75 static Error fromJson(const json::Value &V, libc_benchmarks::Duration &D) { in fromJson()
76 if (V.kind() != json::Value::Kind::Number) in fromJson()
82 static Error fromJson(const json::Value &V, MaybeAlign &Out) { in fromJson()
100 static Error fromJson(const json::Value &V, in fromJson()
102 if (V.kind() != json::Value::Kind::String) in fromJson()
122 Error vectorFromJsonTemplate(const json::Value &V, C &Out) { in vectorFromJsonTemplate()
135 static Error fromJson(const json::Value &V, std::vector<T> &Out) { in fromJson()
141 const json::Object *O;
146 explicit JsonObjectMapper(const json::Value &V) in JsonObjectMapper()
166 if (const json::Value *Value = O->get(Key)) { in map()
173 static Error fromJson(const json::Value &V, in fromJson()
188 static Error fromJson(const json::Value &V, in fromJson()
201 static Error fromJson(const json::Value &V, libc_benchmarks::CacheInfo &Out) { in fromJson()
210 static Error fromJson(const json::Value &V, libc_benchmarks::HostState &Out) { in fromJson()
218 static Error fromJson(const json::Value &V, libc_benchmarks::Runtime &Out) { in fromJson()
227 static Error fromJson(const json::Value &V, libc_benchmarks::Study &Out) { in fromJson()
241 Expected<json::Value> EV = json::parse(Content); in parseJsonStudy()
262 static void serialize(const BenchmarkOptions &BO, json::OStream &JOS) { in serialize()
274 static void serialize(const CacheInfo &CI, json::OStream &JOS) { in serialize()
281 static void serialize(const StudyConfiguration &SC, json::OStream &JOS) { in serialize()
292 static void serialize(const HostState &HS, json::OStream &JOS) { in serialize()
301 static void serialize(const Runtime &RI, json::OStream &JOS) { in serialize()
309 void serializeToJson(const Study &S, json::OStream &JOS) { in serializeToJson()