MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / is_array_of_objects

Function is_array_of_objects

include/jsoncons_ext/toon/encode_toon.hpp:561–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560template <typename Json>
561bool is_array_of_objects(const Json& val)
562{
563 if (!is_json_array(val))
564 {
565 return false;
566 }
567 for (const auto& item : val.array_range())
568 {
569 if (!is_json_object(item))
570 {
571 return false;
572 }
573 }
574 return true;
575}
576
577template <typename Json>
578bool is_array_of_primitives(const Json& val)

Callers 4

encode_array_contentFunction · 0.85
encode_arrayFunction · 0.85

Calls 2

is_json_arrayFunction · 0.85
is_json_objectFunction · 0.85

Tested by

no test coverage detected