Home
last modified time | relevance | path

Searched refs:to_json (Results 1 - 25 of 32) sorted by relevance

12

/third_party/json/tests/src/
H A Dunit-noexcept.cpp28 void to_json(json& /*unused*/, pod /*unused*/) noexcept;
29 void to_json(json& /*unused*/, pod_bis /*unused*/);
32 void to_json(json& /*unused*/, pod /*unused*/) noexcept {}
33 void to_json(json& /*unused*/, pod_bis /*unused*/) {} in to_json() function
40 static_assert(noexcept(nlohmann::to_json(*j, 2)), "");
41 static_assert(noexcept(nlohmann::to_json(*j, 2.5)), "");
42 static_assert(noexcept(nlohmann::to_json(*j, true)), "");
43 static_assert(noexcept(nlohmann::to_json(*j, test{})), "");
44 static_assert(noexcept(nlohmann::to_json(*j, pod{})), "");
45 static_assert(!noexcept(nlohmann::to_json(*
[all...]
H A Dunit-udt.cpp79 // to_json methods
84 static void to_json(BasicJsonType& j, age a) in to_json() function
90 static void to_json(BasicJsonType& j, const name& n) in to_json() function
96 static void to_json(BasicJsonType& j, country c) in to_json() function
115 static void to_json(BasicJsonType& j, const person& p) in to_json() function
120 static void to_json(nlohmann::json& j, const address& a) in to_json() function
125 static void to_json(nlohmann::json& j, const contact& c) in to_json() function
130 static void to_json(nlohmann::json& j, const contact_book& cb) in to_json() function
344 static void to_json(json& j, const std::shared_ptr<T>& opt) in to_json() function
372 static void to_json(jso function
442 static void to_json(json& j, const type& /*type*/) to_json() function
474 static void to_json(json& j, const std::unique_ptr<T>& opt) to_json() function
577 static void to_json(BasicJsonType& j, const T& t) to_json() function
612 static void to_json(BasicJsonType& j, const non_pod& np) to_json() function
673 static void to_json(custom_json& j, const T& t) to_json() function
[all...]
H A Dunit-regression2.cpp752 nlohmann::to_json(o["foo"], s);
756 // call to_json with a non-null JSON value
757 nlohmann::to_json(p["foo"], s);
764 nlohmann::to_json(o["foo"], s);
766 // call to_json with a non-null JSON value
767 nlohmann::to_json(o["foo"], s);
H A Dunit-regression1.cpp59 static void to_json(BasicJsonType& j, const T& value) in to_json() function
74 static void to_json(BasicJsonType& j, const T& value) noexcept // NOLINT(bugprone-exception-escape)
76 ::nlohmann::to_json(j, value);
105 friend void to_json(json& j, const nocopy& n) in to_json() function
/third_party/json/include/nlohmann/detail/conversions/
H A Dto_json.hpp260 // to_json //
265 inline void to_json(BasicJsonType& j, T b) noexcept
278 inline void to_json(BasicJsonType& j, const BoolRef& b) noexcept
285 inline void to_json(BasicJsonType& j, const CompatibleString& s) in to_json() function
291 inline void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s) in to_json() function
298 inline void to_json(BasicJsonType& j, FloatType val) noexcept
305 inline void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept
312 inline void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept
320 inline void to_json(BasicJsonType& j, EnumType e) noexcept
328 inline void to_json(BasicJsonTyp function
341 inline void to_json(BasicJsonType& j, const CompatibleArrayType& arr) to_json() function
347 inline void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin) to_json() function
354 inline void to_json(BasicJsonType& j, const std::valarray<T>& arr) to_json() function
360 inline void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr) to_json() function
367 inline void to_json(BasicJsonType& j, const CompatibleObjectType& obj) to_json() function
373 inline void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj) to_json() function
383 inline void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays) to_json() function
389 inline void to_json(BasicJsonType& j, const std::pair<T1, T2>& p) to_json() function
397 inline void to_json(BasicJsonType& j, const T& b) to_json() function
409 inline void to_json(BasicJsonType& j, const T& t) to_json() function
416 inline void to_json(BasicJsonType& j, const std_fs::path& p) to_json() function
440 JSON_INLINE_VARIABLE constexpr const auto& to_json = // NOLINT(misc-definitions-in-headers) global() member
[all...]
/third_party/json/include/nlohmann/
H A Dadl_serializer.hpp15 #include <nlohmann/detail/conversions/to_json.hpp>
45 /// @sa https://json.nlohmann.me/api/adl_serializer/to_json/
47 static auto to_json(BasicJsonType& j, TargetType && val) noexcept(
48 noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
49 -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
51 ::nlohmann::to_json(j, std::forward<TargetType>(val));
H A Djson.hpp38 #include <nlohmann/detail/conversions/to_json.hpp>
826 JSONSerializer<U>::to_json(std::declval<basic_json_t&>(), in noexcept()
829 JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val)); in noexcept()
853 JSONSerializer<other_boolean_t>::to_json(*this, val.template get<other_boolean_t>()); in basic_json()
856 JSONSerializer<other_number_float_t>::to_json(*this, val.template get<other_number_float_t>()); in basic_json()
859 JSONSerializer<other_number_integer_t>::to_json(*this, val.template get<other_number_integer_t>()); in basic_json()
862 JSONSerializer<other_number_unsigned_t>::to_json(*this, val.template get<other_number_unsigned_t>()); in basic_json()
865 JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>()); in basic_json()
868 JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>()); in basic_json()
871 JSONSerializer<other_array_t>::to_json(*thi in basic_json()
[all...]
/third_party/mesa3d/src/amd/registers/
H A Dregdb.py122 def to_json(obj): member in Object
124 return dict((k, Object.to_json(v)) for k, v in obj.__dict__.items())
126 return dict((k, Object.to_json(v)) for k, v in obj.items())
128 return [Object.to_json(v) for v in obj]
632 regtype = Object.from_json(Object.to_json(self.__register_types[type_ref]))
683 regmap = Object.from_json(Object.to_json(regmap))
711 regmap = Object.from_json(Object.to_json(regmap))
715 regtype = Object.from_json(Object.to_json(other.__register_types[type_ref]))
723 enum = Object.from_json(Object.to_json(other.__enums[enum_ref]))
749 def to_json(sel member in RegisterDatabase
[all...]
/third_party/protobuf/ruby/tests/
H A Dencode_decode_test.rb66 json = msg.to_json
72 json = msg.to_json({ preserve_proto_fieldnames: true })
H A Dcommon_tests.rb822 json = m.to_json
849 assert_equal m.to_json, encoded_msg
852 assert_equal proto_module::TestMessage.decode_json(m.to_json), decoded_msg
1245 assert_equal json, struct.to_json
1249 assert_equal json, proto_module::MyRepeatedStruct.decode(encoded).structs[0].struct.to_json
1256 assert_equal json, struct.to_json
1296 m3 = proto_module::Wrapper.decode_json(m.to_json)
/third_party/mesa3d/bin/pick/
H A Dcore_test.py48 v = c.to_json()
55 v = c.to_json()
68 v = c.to_json()
74 v = c.to_json()
H A Dcore.py124 def to_json(self) -> 'CommitDict': member in Commit
385 json.dump([c.to_json() for c in commits], f, indent=4)
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
H A Decma-builtin-json.c1136 ecma_value_t to_json = ecma_op_object_get_by_magic_id (value_obj_p, LIT_MAGIC_STRING_TO_JSON_UL); in ecma_builtin_json_serialize_property() local
1138 if (ECMA_IS_VALUE_ERROR (to_json)) in ecma_builtin_json_serialize_property()
1141 return to_json; in ecma_builtin_json_serialize_property()
1145 if (ecma_op_is_callable (to_json)) in ecma_builtin_json_serialize_property()
1149 ecma_object_t *to_json_obj_p = ecma_get_object_from_value (to_json); in ecma_builtin_json_serialize_property()
1162 ecma_free_value (to_json); in ecma_builtin_json_serialize_property()
/third_party/json/docs/examples/
H A Dnlohmann_json_namespace_begin.c++17.cpp10 static void to_json(json& j, const std::optional<T>& opt) in to_json() function
H A Dto_json.cpp19 void to_json(json& j, const person& p) in to_json() function
H A Dnlohmann_define_type_non_intrusive_explicit.cpp16 void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json() function
H A Dfrom_json__non_default_constructible.cpp31 // Here's the catch! You must provide a to_json method! Otherwise, you
34 static void to_json(json& j, ns::person p) in to_json() function
H A Dnlohmann_define_type_intrusive_with_default_explicit.cpp22 friend void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json() function in ns::person
H A Dnlohmann_define_type_intrusive_explicit.cpp22 friend void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json() function in ns::person
H A Dnlohmann_define_type_non_intrusive_with_default_explicit.cpp21 void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json() function
/third_party/nghttp2/src/
H A Dinflatehd.cc74 static void to_json(nghttp2_hd_inflater *inflater, json_t *headers, in to_json() function
167 to_json(inflater, headers, wire, seq, old_settings_table_size); in inflate_hd()
/third_party/musl/scripts/
H A Dprint_so_deps.py108 to_json = json.dumps(self.soname_deps)
109 f.write(to_json)
/third_party/protobuf/conformance/
H A Dconformance_ruby.rb88 response.json_payload = test_message.to_json
122 STDERR.puts("conformance_ruby: request=#{request.to_json}, " \
123 "response=#{response.to_json}\n")
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
H A Dstream.py69 def to_json(self): member in StreamParams
371 params_bytes = params.to_json().encode('utf-8')
/third_party/typescript/tests/verify_3rd_libs/
H A Dverify_3rd_libs.py309 datas.to_json('tmp.json', orient="records")
342 datas.to_json('tmp.json', orient="records")

Completed in 17 milliseconds

12