Name Date Size

..25-Oct-20244 KiB

accept__string.cppH A D25-Oct-2024466

accept__string.outputH A D25-Oct-202411

array.cppH A D25-Oct-2024543

array.outputH A D25-Oct-202438

array_t.cppH A D25-Oct-2024217

array_t.outputH A D25-Oct-20245

at__json_pointer.cppH A D25-Oct-20242.4 KiB

at__json_pointer.outputH A D25-Oct-2024451

at__json_pointer_const.cppH A D25-Oct-20241.9 KiB

at__json_pointer_const.outputH A D25-Oct-2024351

at__keytype.c++17.cppH A D25-Oct-20241.1 KiB

at__keytype.c++17.outputH A D25-Oct-2024201

at__keytype_const.c++17.cppH A D25-Oct-2024987

at__keytype_const.c++17.outputH A D25-Oct-202485

at__object_t_key_type.cppH A D25-Oct-2024982

at__object_t_key_type.outputH A D25-Oct-2024201

at__object_t_key_type_const.cppH A D25-Oct-2024862

at__object_t_key_type_const.outputH A D25-Oct-202485

at__size_type.cppH A D25-Oct-2024883

at__size_type.outputH A D25-Oct-2024168

at__size_type_const.cppH A D25-Oct-2024755

at__size_type_const.outputH A D25-Oct-2024132

back.cppH A D25-Oct-20241 KiB

back.outputH A D25-Oct-202489

basic_json__basic_json.cppH A D25-Oct-2024338

basic_json__basic_json.outputH A D25-Oct-202459

basic_json__CompatibleType.cppH A D25-Oct-20246.3 KiB

basic_json__CompatibleType.outputH A D25-Oct-2024669

basic_json__copyassignment.cppH A D25-Oct-2024283

basic_json__copyassignment.outputH A D25-Oct-20246

basic_json__InputIt_InputIt.cppH A D25-Oct-2024848

basic_json__InputIt_InputIt.outputH A D25-Oct-202498

basic_json__list_init_t.cppH A D25-Oct-2024593

basic_json__list_init_t.outputH A D25-Oct-202483

basic_json__moveconstructor.cppH A D25-Oct-2024287

basic_json__moveconstructor.outputH A D25-Oct-20248

basic_json__nullptr_t.cppH A D25-Oct-2024298

basic_json__nullptr_t.outputH A D25-Oct-202410

basic_json__size_type_basic_json.cppH A D25-Oct-2024420

basic_json__size_type_basic_json.outputH A D25-Oct-202455

basic_json__value_t.cppH A D25-Oct-2024764

basic_json__value_t.outputH A D25-Oct-202426

begin.cppH A D25-Oct-2024330

begin.outputH A D25-Oct-20242

binary.cppH A D25-Oct-2024408

binary.outputH A D25-Oct-202426

binary_t.cppH A D25-Oct-2024265

binary_t.outputH A D25-Oct-20245

boolean_t.cppH A D25-Oct-2024206

boolean_t.outputH A D25-Oct-20245

byte_container_with_subtype__byte_container_with_subtype.cppH A D25-Oct-2024648

byte_container_with_subtype__byte_container_with_subtype.outputH A D25-Oct-2024112

byte_container_with_subtype__clear_subtype.cppH A D25-Oct-2024576

byte_container_with_subtype__clear_subtype.outputH A D25-Oct-2024147

byte_container_with_subtype__has_subtype.cppH A D25-Oct-2024602

byte_container_with_subtype__has_subtype.outputH A D25-Oct-202449

byte_container_with_subtype__set_subtype.cppH A D25-Oct-2024594

byte_container_with_subtype__set_subtype.outputH A D25-Oct-2024147

byte_container_with_subtype__subtype.cppH A D25-Oct-2024712

byte_container_with_subtype__subtype.outputH A D25-Oct-202454

cbegin.cppH A D25-Oct-2024343

cbegin.outputH A D25-Oct-20242

cbor_tag_handler_t.cppH A D25-Oct-2024837

cbor_tag_handler_t.outputH A D25-Oct-2024198

cend.cppH A D25-Oct-2024413

cend.outputH A D25-Oct-20242

clear.cppH A D25-Oct-2024832

clear.outputH A D25-Oct-202426

contains__json_pointer.cppH A D25-Oct-20241.1 KiB

contains__json_pointer.outputH A D25-Oct-202438

contains__keytype.c++17.cppH A D25-Oct-2024635

contains__keytype.c++17.outputH A D25-Oct-202495

contains__object_t_key_type.cppH A D25-Oct-2024563

contains__object_t_key_type.outputH A D25-Oct-202495

count__keytype.c++17.cppH A D25-Oct-2024535

count__keytype.c++17.outputH A D25-Oct-202476

count__object_t_key_type.cppH A D25-Oct-2024465

count__object_t_key_type.outputH A D25-Oct-202476

crbegin.cppH A D25-Oct-2024350

crbegin.outputH A D25-Oct-20242

crend.cppH A D25-Oct-2024413

crend.outputH A D25-Oct-20242

default_object_comparator_t.cppH A D25-Oct-2024325

default_object_comparator_t.outputH A D25-Oct-202438

diagnostics_extended.cppH A D25-Oct-2024378

diagnostics_extended.outputH A D25-Oct-202490

diagnostics_standard.cppH A D25-Oct-2024349

diagnostics_standard.outputH A D25-Oct-202467

diff.cppH A D25-Oct-2024741

diff.outputH A D25-Oct-2024317

dump.cppH A D25-Oct-20241.4 KiB

dump.outputH A D25-Oct-2024467

emplace.cppH A D25-Oct-2024775

emplace.outputH A D25-Oct-202486

emplace_back.cppH A D25-Oct-2024452

emplace_back.outputH A D25-Oct-202470

empty.cppH A D25-Oct-2024907

empty.outputH A D25-Oct-202451

end.cppH A D25-Oct-2024406

end.outputH A D25-Oct-20242

erase__IteratorType.cppH A D25-Oct-2024862

erase__IteratorType.outputH A D25-Oct-202441

erase__IteratorType_IteratorType.cppH A D25-Oct-2024978

erase__IteratorType_IteratorType.outputH A D25-Oct-202439

erase__keytype.c++17.cppH A D25-Oct-2024466

erase__keytype.c++17.outputH A D25-Oct-202414

erase__object_t_key_type.cppH A D25-Oct-2024396

erase__object_t_key_type.outputH A D25-Oct-202414

erase__size_type.cppH A D25-Oct-2024259

erase__size_type.outputH A D25-Oct-202412

error_handler_t.cppH A D25-Oct-2024652

error_handler_t.outputH A D25-Oct-2024166

exception.cppH A D25-Oct-2024432

exception.outputH A D25-Oct-202490

find__keytype.c++17.cppH A D25-Oct-2024617

find__keytype.c++17.outputH A D25-Oct-202469

find__object_t_key_type.cppH A D25-Oct-2024547

find__object_t_key_type.outputH A D25-Oct-202469

flatten.cppH A D25-Oct-2024598

flatten.outputH A D25-Oct-2024228

from_bjdata.cppH A D25-Oct-2024574

from_bjdata.outputH A D25-Oct-202437

from_bson.cppH A D25-Oct-2024635

from_bson.outputH A D25-Oct-202437

from_cbor.cppH A D25-Oct-2024546

from_cbor.outputH A D25-Oct-202437

from_json__default_constructible.cppH A D25-Oct-2024655

from_json__default_constructible.outputH A D25-Oct-202449

from_json__non_default_constructible.cppH A D25-Oct-20241.1 KiB

from_json__non_default_constructible.outputH A D25-Oct-202449

from_msgpack.cppH A D25-Oct-2024556

from_msgpack.outputH A D25-Oct-202437

from_ubjson.cppH A D25-Oct-2024574

from_ubjson.outputH A D25-Oct-202437

front.cppH A D25-Oct-2024951

front.outputH A D25-Oct-202433

get__PointerType.cppH A D25-Oct-2024621

get__PointerType.outputH A D25-Oct-202417

get__ValueType_const.cppH A D25-Oct-20241.3 KiB

get__ValueType_const.outputH A D25-Oct-2024157

get_allocator.cppH A D25-Oct-2024401

get_allocator.outputH A D25-Oct-202416

get_binary.cppH A D25-Oct-2024408

get_binary.outputH A D25-Oct-202426

get_ptr.cppH A D25-Oct-2024641

get_ptr.outputH A D25-Oct-202417

get_ref.cppH A D25-Oct-2024573

get_ref.outputH A D25-Oct-2024100

get_to.cppH A D25-Oct-20241.3 KiB

get_to.outputH A D25-Oct-2024157

insert.cppH A D25-Oct-2024352

insert.outputH A D25-Oct-202416

insert__count.cppH A D25-Oct-2024372

insert__count.outputH A D25-Oct-202426

insert__ilist.cppH A D25-Oct-2024367

insert__ilist.outputH A D25-Oct-202418

insert__range.cppH A D25-Oct-2024473

insert__range.outputH A D25-Oct-202443

insert__range_object.cppH A D25-Oct-2024457

insert__range_object.outputH A D25-Oct-2024134

invalid_iterator.cppH A D25-Oct-2024469

invalid_iterator.outputH A D25-Oct-2024107

is_array.cppH A D25-Oct-2024951

is_array.outputH A D25-Oct-202453

is_binary.cppH A D25-Oct-2024961

is_binary.outputH A D25-Oct-202453

is_boolean.cppH A D25-Oct-2024971

is_boolean.outputH A D25-Oct-202453

is_discarded.cppH A D25-Oct-2024991

is_discarded.outputH A D25-Oct-202454

is_null.cppH A D25-Oct-2024941

is_null.outputH A D25-Oct-202453

is_number.cppH A D25-Oct-2024961

is_number.outputH A D25-Oct-202451

is_number_float.cppH A D25-Oct-20241,021

is_number_float.outputH A D25-Oct-202453

is_number_integer.cppH A D25-Oct-20241 KiB

is_number_integer.outputH A D25-Oct-202452

is_number_unsigned.cppH A D25-Oct-20241 KiB

is_number_unsigned.outputH A D25-Oct-202453

is_object.cppH A D25-Oct-2024961

is_object.outputH A D25-Oct-202453

is_primitive.cppH A D25-Oct-2024991

is_primitive.outputH A D25-Oct-202447

is_string.cppH A D25-Oct-2024961

is_string.outputH A D25-Oct-202453

is_structured.cppH A D25-Oct-20241,001

is_structured.outputH A D25-Oct-202452

items.cppH A D25-Oct-2024514

items.outputH A D25-Oct-2024124

json_lines.cppH A D25-Oct-2024569

json_lines.outputH A D25-Oct-2024215

json_pointer.cppH A D25-Oct-20241 KiB

json_pointer.outputH A D25-Oct-2024314

json_pointer__back.cppH A D25-Oct-2024421

json_pointer__back.outputH A D25-Oct-202480

json_pointer__empty.cppH A D25-Oct-2024579

json_pointer__empty.outputH A D25-Oct-202448

json_pointer__operator__equal.cppH A D25-Oct-2024645

json_pointer__operator__equal.outputH A D25-Oct-202473

json_pointer__operator__equal_stringtype.cppH A D25-Oct-2024917

json_pointer__operator__equal_stringtype.outputH A D25-Oct-2024184

json_pointer__operator__notequal.cppH A D25-Oct-2024645

json_pointer__operator__notequal.outputH A D25-Oct-202475

json_pointer__operator__notequal_stringtype.cppH A D25-Oct-2024896

json_pointer__operator__notequal_stringtype.outputH A D25-Oct-2024187

json_pointer__operator_add.cppH A D25-Oct-2024491

json_pointer__operator_add.outputH A D25-Oct-202463

json_pointer__operator_add_binary.cppH A D25-Oct-2024421

json_pointer__operator_add_binary.outputH A D25-Oct-202436

json_pointer__operator_string_t.cppH A D25-Oct-2024339

json_pointer__operator_string_t.outputH A D25-Oct-202413

json_pointer__parent_pointer.cppH A D25-Oct-2024576

json_pointer__parent_pointer.outputH A D25-Oct-202471

json_pointer__pop_back.cppH A D25-Oct-2024418

json_pointer__pop_back.outputH A D25-Oct-202436

json_pointer__push_back.cppH A D25-Oct-2024419

json_pointer__push_back.outputH A D25-Oct-202432

json_pointer__string_t.cppH A D25-Oct-2024303

json_pointer__string_t.outputH A D25-Oct-202423

json_pointer__to_string.cppH A D25-Oct-20241.2 KiB

json_pointer__to_string.outputH A D25-Oct-202479

max_size.cppH A D25-Oct-2024707

max_size.outputH A D25-Oct-202448

merge_patch.cppH A D25-Oct-20241 KiB

merge_patch.outputH A D25-Oct-2024196

meta.cppH A D25-Oct-2024188

meta.outputH A D25-Oct-2024373

nlohmann_define_type_intrusive_explicit.cppH A D25-Oct-20241.6 KiB

nlohmann_define_type_intrusive_explicit.outputH A D25-Oct-2024160

nlohmann_define_type_intrusive_macro.cppH A D25-Oct-20241.2 KiB

nlohmann_define_type_intrusive_macro.outputH A D25-Oct-2024160

nlohmann_define_type_intrusive_with_default_explicit.cppH A D25-Oct-20241.7 KiB

nlohmann_define_type_intrusive_with_default_explicit.outputH A D25-Oct-2024162

nlohmann_define_type_intrusive_with_default_macro.cppH A D25-Oct-20241.1 KiB

nlohmann_define_type_intrusive_with_default_macro.outputH A D25-Oct-2024162

nlohmann_define_type_non_intrusive_explicit.cppH A D25-Oct-20241.4 KiB

nlohmann_define_type_non_intrusive_explicit.outputH A D25-Oct-2024160

nlohmann_define_type_non_intrusive_macro.cppH A D25-Oct-2024957

nlohmann_define_type_non_intrusive_macro.outputH A D25-Oct-2024160

nlohmann_define_type_non_intrusive_with_default_explicit.cppH A D25-Oct-20241.6 KiB

nlohmann_define_type_non_intrusive_with_default_explicit.outputH A D25-Oct-2024162

nlohmann_define_type_non_intrusive_with_default_macro.cppH A D25-Oct-20241.1 KiB

nlohmann_define_type_non_intrusive_with_default_macro.outputH A D25-Oct-2024162

nlohmann_json_namespace.cppH A D25-Oct-2024353

nlohmann_json_namespace.outputH A D25-Oct-202427

nlohmann_json_namespace_begin.c++17.cppH A D25-Oct-2024687

nlohmann_json_namespace_begin.c++17.outputH A D25-Oct-20249

nlohmann_json_namespace_no_version.cppH A D25-Oct-2024284

nlohmann_json_namespace_no_version.outputH A D25-Oct-202419

nlohmann_json_serialize_enum.cppH A D25-Oct-20241.4 KiB

nlohmann_json_serialize_enum.outputH A D25-Oct-2024103

nlohmann_json_serialize_enum_2.cppH A D25-Oct-2024792

nlohmann_json_serialize_enum_2.outputH A D25-Oct-202433

nlohmann_json_version.cppH A D25-Oct-2024306

nlohmann_json_version.outputH A D25-Oct-202435

number_float_t.cppH A D25-Oct-2024213

number_float_t.outputH A D25-Oct-20245

number_integer_t.cppH A D25-Oct-2024221

number_integer_t.outputH A D25-Oct-20245

number_unsigned_t.cppH A D25-Oct-2024223

number_unsigned_t.outputH A D25-Oct-20245

object.cppH A D25-Oct-2024701

object.outputH A D25-Oct-202499

object_comparator_t.cppH A D25-Oct-2024377

object_comparator_t.outputH A D25-Oct-202498

object_t.cppH A D25-Oct-2024231

object_t.outputH A D25-Oct-20245

operator__equal.cppH A D25-Oct-2024827

operator__equal.outputH A D25-Oct-2024106

operator__equal__nullptr_t.cppH A D25-Oct-2024698

operator__equal__nullptr_t.outputH A D25-Oct-2024124

operator__equal__specializations.cppH A D25-Oct-2024474

operator__equal__specializations.outputH A D25-Oct-202411

operator__greater.cppH A D25-Oct-2024817

operator__greater.outputH A D25-Oct-2024115

operator__greaterequal.cppH A D25-Oct-2024825

operator__greaterequal.outputH A D25-Oct-2024118

operator__less.cppH A D25-Oct-2024821

operator__less.outputH A D25-Oct-2024118

operator__lessequal.cppH A D25-Oct-2024825

operator__lessequal.outputH A D25-Oct-2024117

operator__notequal.cppH A D25-Oct-2024827

operator__notequal.outputH A D25-Oct-2024106

operator__notequal__nullptr_t.cppH A D25-Oct-2024698

operator__notequal__nullptr_t.outputH A D25-Oct-2024121

operator__value_t.cppH A D25-Oct-20241.3 KiB

operator__value_t.outputH A D25-Oct-202440

operator__ValueType.cppH A D25-Oct-20241.4 KiB

operator__ValueType.outputH A D25-Oct-2024225

operator_array__json_pointer.cppH A D25-Oct-20241.3 KiB

operator_array__json_pointer.outputH A D25-Oct-2024122

operator_array__json_pointer_const.cppH A D25-Oct-2024684

operator_array__json_pointer_const.outputH A D25-Oct-202416

operator_array__keytype.c++17.cppH A D25-Oct-2024734

operator_array__keytype.c++17.outputH A D25-Oct-2024194

operator_array__keytype_const.c++17.cppH A D25-Oct-2024353

operator_array__keytype_const.c++17.outputH A D25-Oct-20242

operator_array__object_t_key_type.cppH A D25-Oct-2024656

operator_array__object_t_key_type.outputH A D25-Oct-2024194

operator_array__object_t_key_type_const.cppH A D25-Oct-2024285

operator_array__object_t_key_type_const.outputH A D25-Oct-20242

operator_array__size_type.cppH A D25-Oct-2024483

operator_array__size_type.outputH A D25-Oct-202454

operator_array__size_type_const.cppH A D25-Oct-2024268

operator_array__size_type_const.outputH A D25-Oct-20248

operator_deserialize.cppH A D25-Oct-2024524

operator_deserialize.outputH A D25-Oct-2024136

operator_literal_json.cppH A D25-Oct-2024254

operator_literal_json.outputH A D25-Oct-202439

operator_literal_json_pointer.cppH A D25-Oct-2024297

operator_literal_json_pointer.outputH A D25-Oct-20248

operator_ltlt__basic_json.cppH A D25-Oct-2024549

operator_ltlt__basic_json.outputH A D25-Oct-2024121

operator_ltlt__json_pointer.cppH A D25-Oct-2024246

operator_ltlt__json_pointer.outputH A D25-Oct-202413

operator_spaceship__const_reference.c++20.cppH A D25-Oct-20241.1 KiB

operator_spaceship__const_reference.c++20.outputH A D25-Oct-2024141

operator_spaceship__scalartype.c++20.cppH A D25-Oct-20241.1 KiB

operator_spaceship__scalartype.c++20.outputH A D25-Oct-2024101

ordered_json.cppH A D25-Oct-2024224

ordered_json.outputH A D25-Oct-202441

ordered_map.cppH A D25-Oct-20241.1 KiB

ordered_map.outputH A D25-Oct-2024172

other_error.cppH A D25-Oct-2024699

other_error.outputH A D25-Oct-2024140

out_of_range.cppH A D25-Oct-2024412

out_of_range.outputH A D25-Oct-202491

parse__allow_exceptions.cppH A D25-Oct-2024662

parse__allow_exceptions.outputH A D25-Oct-2024257

parse__array__parser_callback_t.cppH A D25-Oct-2024678

parse__array__parser_callback_t.outputH A D25-Oct-2024382

parse__contiguouscontainer__parser_callback_t.cppH A D25-Oct-2024363

parse__contiguouscontainer__parser_callback_t.outputH A D25-Oct-202425

parse__istream__parser_callback_t.cppH A D25-Oct-20241.3 KiB

parse__istream__parser_callback_t.outputH A D25-Oct-2024616

parse__iterator_pair.cppH A D25-Oct-2024423

parse__iterator_pair.linkH A D25-Oct-202489

parse__iterator_pair.outputH A D25-Oct-202425

parse__pointers.cppH A D25-Oct-2024360

parse__pointers.linkH A D25-Oct-202489

parse__pointers.outputH A D25-Oct-202425

parse__string__parser_callback_t.cppH A D25-Oct-20241.2 KiB

parse__string__parser_callback_t.outputH A D25-Oct-2024616

parse_error.cppH A D25-Oct-2024457

parse_error.outputH A D25-Oct-2024202

patch.cppH A D25-Oct-2024738

patch.outputH A D25-Oct-202499

patch_inplace.cppH A D25-Oct-2024772

patch_inplace.outputH A D25-Oct-2024112

push_back.cppH A D25-Oct-2024440

push_back.outputH A D25-Oct-202452

push_back__initializer_list.cppH A D25-Oct-2024611

push_back__initializer_list.outputH A D25-Oct-202473

push_back__object_t__value.cppH A D25-Oct-2024584

push_back__object_t__value.outputH A D25-Oct-202478

rbegin.cppH A D25-Oct-2024343

rbegin.outputH A D25-Oct-20242

README.cppH A D25-Oct-2024753

README.outputH A D25-Oct-2024404

rend.cppH A D25-Oct-2024406

rend.outputH A D25-Oct-20242

sax_parse.cppH A D25-Oct-20243.2 KiB

sax_parse.outputH A D25-Oct-20241 KiB

sax_parse__binary.cppH A D25-Oct-20242.9 KiB

sax_parse__binary.outputH A D25-Oct-202432

size.cppH A D25-Oct-2024864

size.outputH A D25-Oct-202418

std_hash.cppH A D25-Oct-2024803

std_hash.outputH A D25-Oct-2024214

std_swap.cppH A D25-Oct-2024382

std_swap.outputH A D25-Oct-202486

string_t.cppH A D25-Oct-2024212

string_t.outputH A D25-Oct-20245

swap__array_t.cppH A D25-Oct-2024444

swap__array_t.outputH A D25-Oct-202461

swap__binary_t.cppH A D25-Oct-2024432

swap__binary_t.outputH A D25-Oct-202483

swap__object_t.cppH A D25-Oct-2024494

swap__object_t.outputH A D25-Oct-202488

swap__reference.cppH A D25-Oct-2024372

swap__reference.outputH A D25-Oct-202469

swap__string_t.cppH A D25-Oct-2024438

swap__string_t.outputH A D25-Oct-202460

to_bjdata.cppH A D25-Oct-20241.4 KiB

to_bjdata.outputH A D25-Oct-202477

to_bson.cppH A D25-Oct-2024507

to_bson.outputH A D25-Oct-2024136

to_cbor.cppH A D25-Oct-2024507

to_cbor.outputH A D25-Oct-202491

to_json.cppH A D25-Oct-2024513

to_json.outputH A D25-Oct-202467

to_msgpack.cppH A D25-Oct-2024517

to_msgpack.outputH A D25-Oct-202491

to_string.cppH A D25-Oct-2024472

to_string.outputH A D25-Oct-202422

to_ubjson.cppH A D25-Oct-20241.4 KiB

to_ubjson.outputH A D25-Oct-202477

type.cppH A D25-Oct-20241 KiB

type.outputH A D25-Oct-202440

type_error.cppH A D25-Oct-2024427

type_error.outputH A D25-Oct-202494

type_name.cppH A D25-Oct-20241,021

type_name.outputH A D25-Oct-2024165

unflatten.cppH A D25-Oct-2024553

unflatten.outputH A D25-Oct-2024255

update.cppH A D25-Oct-2024691

update.outputH A D25-Oct-2024206

update__range.cppH A D25-Oct-2024727

update__range.outputH A D25-Oct-2024206

value__json_ptr.cppH A D25-Oct-2024907

value__json_ptr.outputH A D25-Oct-202419

value__keytype.c++17.cppH A D25-Oct-2024889

value__keytype.c++17.outputH A D25-Oct-202419

value__object_t_key_type.cppH A D25-Oct-2024815

value__object_t_key_type.outputH A D25-Oct-202419

README.cpp

1 #include <iostream>
2 #include <iomanip>
3 #include <nlohmann/json.hpp>
4 
5 using json = nlohmann::json;
6 
main()7 int main()
8 {
9     // create a JSON object
10     json j =
11     {
12         {"pi", 3.141},
13         {"happy", true},
14         {"name", "Niels"},
15         {"nothing", nullptr},
16         {
17             "answer", {
18                 {"everything", 42}
19             }
20         },
21         {"list", {1, 0, 2}},
22         {
23             "object", {
24                 {"currency", "USD"},
25                 {"value", 42.99}
26             }
27         }
28     };
29 
30     // add new values
31     j["new"]["key"]["value"] = {"another", "list"};
32 
33     // count elements
34     auto s = j.size();
35     j["size"] = s;
36 
37     // pretty print with indent of 4 spaces
38     std::cout << std::setw(4) << j << '\n';
39 }
40 

README.output

1{
2    "answer": {
3        "everything": 42
4    },
5    "happy": true,
6    "list": [
7        1,
8        0,
9        2
10    ],
11    "name": "Niels",
12    "new": {
13        "key": {
14            "value": [
15                "another",
16                "list"
17            ]
18        }
19    },
20    "nothing": null,
21    "object": {
22        "currency": "USD",
23        "value": 42.99
24    },
25    "pi": 3.141,
26    "size": 8
27}
28