Searched refs:obj_json (Results 1 – 2 of 2) sorted by relevance
28 auto obj_json = json.find(key); in GetJsonValue() local29 if (obj_json != json.end()) { in GetJsonValue()31 T value = obj_json.value(); in GetJsonValue()
237 nlohmann::json obj_json; in ToJson() local239 obj_json = nullptr; in ToJson()241 obj_json = padded_sample[key].cast<int64_t>(); in ToJson()243 obj_json = padded_sample[key].cast<double>(); in ToJson()245 obj_json = padded_sample[key].cast<std::string>(); // also catch py::bytes in ToJson()250 (*padded_sample_json)[py::str(key).cast<std::string>()] = obj_json; in ToJson()