1
0
mirror of https://github.com/nlohmann/json synced 2024-11-15 08:40:05 +00:00
nlohmannjson/doc/examples
2016-01-20 21:14:58 +01:00
..
array.cpp reorganized repo 2015-06-21 21:24:03 +02:00
array.link add online examples 2015-06-29 23:02:41 +02:00
array.output reorganized repo 2015-06-21 21:24:03 +02:00
at__object_t_key_type_const.cpp more documentation 2015-06-24 12:15:51 +02:00
at__object_t_key_type_const.link add online examples 2015-06-29 23:02:41 +02:00
at__object_t_key_type_const.output more documentation 2015-06-24 12:15:51 +02:00
at__object_t_key_type.cpp working on #160 2015-12-22 13:27:40 +01:00
at__object_t_key_type.link working on #160 2015-12-22 13:27:40 +01:00
at__object_t_key_type.output working on #160 2015-12-22 13:27:40 +01:00
at__size_type_const.cpp more documentation 2015-06-24 12:15:51 +02:00
at__size_type_const.link add online examples 2015-06-29 23:02:41 +02:00
at__size_type_const.output more documentation 2015-06-24 12:15:51 +02:00
at__size_type.cpp working on #160 2015-12-22 13:27:40 +01:00
at__size_type.link working on #160 2015-12-22 13:27:40 +01:00
at__size_type.output working on #160 2015-12-22 13:27:40 +01:00
back.cpp reorganized repo 2015-06-21 21:24:03 +02:00
back.link add online examples 2015-06-29 23:02:41 +02:00
back.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__array_t.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__array_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__array_t.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__basic_json.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__basic_json.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__basic_json.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__boolean_t.cpp more documentation 2015-06-22 23:21:49 +02:00
basic_json__boolean_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__boolean_t.output more documentation 2015-06-22 23:21:49 +02:00
basic_json__CompatibleArrayType.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__CompatibleArrayType.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__CompatibleArrayType.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__CompatibleIntegerNumberType.cpp more documentation 2015-06-22 21:44:20 +02:00
basic_json__CompatibleIntegerNumberType.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__CompatibleIntegerNumberType.output more documentation 2015-06-22 21:44:20 +02:00
basic_json__CompatibleNumberFloatType.cpp more documentation 2015-06-22 23:21:49 +02:00
basic_json__CompatibleNumberFloatType.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__CompatibleNumberFloatType.output more documentation 2015-06-22 23:21:49 +02:00
basic_json__CompatibleObjectType.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__CompatibleObjectType.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__CompatibleObjectType.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__CompatibleStringType.cpp more documentation 2015-06-22 23:21:49 +02:00
basic_json__CompatibleStringType.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__CompatibleStringType.output more documentation 2015-06-22 23:21:49 +02:00
basic_json__const_int.cpp more documentation 2015-06-22 23:21:49 +02:00
basic_json__const_int.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__const_int.output more documentation 2015-06-22 23:21:49 +02:00
basic_json__copyassignment.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__copyassignment.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__copyassignment.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__InputIt_InputIt.cpp more documentation 2015-06-22 23:21:49 +02:00
basic_json__InputIt_InputIt.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__InputIt_InputIt.output more documentation 2015-06-22 23:21:49 +02:00
basic_json__list_init_t.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__list_init_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__list_init_t.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__moveconstructor.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__moveconstructor.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__moveconstructor.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__nullptr_t.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__nullptr_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__nullptr_t.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__number_float_t.cpp more documentation 2015-06-22 21:44:20 +02:00
basic_json__number_float_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__number_float_t.output more documentation 2015-06-22 21:44:20 +02:00
basic_json__number_integer_t.cpp more documentation 2015-06-22 21:44:20 +02:00
basic_json__number_integer_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__number_integer_t.output more documentation 2015-06-22 21:44:20 +02:00
basic_json__object_t.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__object_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__object_t.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__size_type_basic_json.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__size_type_basic_json.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__size_type_basic_json.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__string_t_value_type.cpp more documentation 2015-06-21 22:42:32 +02:00
basic_json__string_t_value_type.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__string_t_value_type.output more documentation 2015-06-21 22:42:32 +02:00
basic_json__string_t.cpp more documentation 2015-06-21 22:42:32 +02:00
basic_json__string_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__string_t.output more documentation 2015-06-21 22:42:32 +02:00
basic_json__value_t.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__value_t.link add online examples 2015-06-29 23:02:41 +02:00
basic_json__value_t.output reorganized repo 2015-06-21 21:24:03 +02:00
basic_json__value.cpp fix for #133 2015-12-15 08:38:54 +01:00
basic_json__value.link fix for #133 2015-12-15 08:38:54 +01:00
basic_json__value.output fix for #133 2015-12-15 08:38:54 +01:00
basic_json.cpp reorganized repo 2015-06-21 21:24:03 +02:00
basic_json.link add online examples 2015-06-29 23:02:41 +02:00
basic_json.output reorganized repo 2015-06-21 21:24:03 +02:00
begin.cpp reorganized repo 2015-06-21 21:24:03 +02:00
begin.link add online examples 2015-06-29 23:02:41 +02:00
begin.output reorganized repo 2015-06-21 21:24:03 +02:00
cbegin.cpp reorganized repo 2015-06-21 21:24:03 +02:00
cbegin.link add online examples 2015-06-29 23:02:41 +02:00
cbegin.output reorganized repo 2015-06-21 21:24:03 +02:00
cend.cpp reorganized repo 2015-06-21 21:24:03 +02:00
cend.link add online examples 2015-06-29 23:02:41 +02:00
cend.output reorganized repo 2015-06-21 21:24:03 +02:00
clear.cpp reorganized repo 2015-06-21 21:24:03 +02:00
clear.link add online examples 2015-06-29 23:02:41 +02:00
clear.output reorganized repo 2015-06-21 21:24:03 +02:00
count.cpp more documentation 2015-06-28 19:32:09 +02:00
count.link add online examples 2015-06-29 23:02:41 +02:00
count.output more documentation 2015-06-28 19:32:09 +02:00
crbegin.cpp reorganized repo 2015-06-21 21:24:03 +02:00
crbegin.link add online examples 2015-06-29 23:02:41 +02:00
crbegin.output reorganized repo 2015-06-21 21:24:03 +02:00
crend.cpp reorganized repo 2015-06-21 21:24:03 +02:00
crend.link add online examples 2015-06-29 23:02:41 +02:00
crend.output reorganized repo 2015-06-21 21:24:03 +02:00
dump.cpp reorganized repo 2015-06-21 21:24:03 +02:00
dump.link add online examples 2015-06-29 23:02:41 +02:00
dump.output reorganized repo 2015-06-21 21:24:03 +02:00
empty.cpp reorganized repo 2015-06-21 21:24:03 +02:00
empty.link add online examples 2015-06-29 23:02:41 +02:00
empty.output reorganized repo 2015-06-21 21:24:03 +02:00
end.cpp reorganized repo 2015-06-21 21:24:03 +02:00
end.link add online examples 2015-06-29 23:02:41 +02:00
end.output reorganized repo 2015-06-21 21:24:03 +02:00
erase__IteratorType_IteratorType.cpp added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__IteratorType_IteratorType.link add online examples 2015-06-29 23:02:41 +02:00
erase__IteratorType_IteratorType.output added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__IteratorType.cpp added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__IteratorType.link add online examples 2015-06-29 23:02:41 +02:00
erase__IteratorType.output added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__key_type.cpp added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__key_type.link add online examples 2015-06-29 23:02:41 +02:00
erase__key_type.output added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__size_type.cpp added documentation for erase functions 2015-06-28 15:49:40 +02:00
erase__size_type.link add online examples 2015-06-29 23:02:41 +02:00
erase__size_type.output added documentation for erase functions 2015-06-28 15:49:40 +02:00
find__key_type.cpp more documentation 2015-06-28 19:32:09 +02:00
find__key_type.link add online examples 2015-06-29 23:02:41 +02:00
find__key_type.output more documentation 2015-06-28 19:32:09 +02:00
front.cpp reorganized repo 2015-06-21 21:24:03 +02:00
front.link add online examples 2015-06-29 23:02:41 +02:00
front.output reorganized repo 2015-06-21 21:24:03 +02:00
get__PointerType.cpp fixed typos in comments for examples 2015-10-02 15:57:40 +02:00
get__PointerType.link Cleanup 2015-10-03 13:16:59 +02:00
get__PointerType.output worked on #91 2015-06-24 15:16:32 +02:00
get__ValueType_const.cpp worked on #91 2015-06-24 15:16:32 +02:00
get__ValueType_const.link add online examples 2015-06-29 23:02:41 +02:00
get__ValueType_const.output worked on #91 2015-06-24 15:16:32 +02:00
get_ptr.cpp fixed typos in comments for examples 2015-10-02 15:57:40 +02:00
get_ptr.link Cleanup 2015-10-03 13:16:59 +02:00
get_ptr.output worked on #91 2015-06-24 15:16:32 +02:00
get_ref.cpp cleanup after #184 2016-01-20 21:14:58 +01:00
get_ref.link cleanup after #184 2016-01-20 21:14:58 +01:00
get_ref.output cleanup after #184 2016-01-20 21:14:58 +01:00
insert__count.cpp added first insert functions 2015-07-12 18:28:23 +02:00
insert__count.link added first insert functions 2015-07-12 18:28:23 +02:00
insert__count.output added first insert functions 2015-07-12 18:28:23 +02:00
insert__ilist.cpp added another insert function 2015-07-12 22:47:08 +02:00
insert__ilist.link added another insert function 2015-07-12 22:47:08 +02:00
insert__ilist.output added another insert function 2015-07-12 22:47:08 +02:00
insert__range.cpp added first insert functions 2015-07-12 18:28:23 +02:00
insert__range.link added first insert functions 2015-07-12 18:28:23 +02:00
insert__range.output added first insert functions 2015-07-12 18:28:23 +02:00
insert.cpp added first insert functions 2015-07-12 18:28:23 +02:00
insert.link added first insert functions 2015-07-12 18:28:23 +02:00
insert.output added first insert functions 2015-07-12 18:28:23 +02:00
is_array.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_array.link add online examples 2015-06-29 23:02:41 +02:00
is_array.output reorganized repo 2015-06-21 21:24:03 +02:00
is_boolean.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_boolean.link add online examples 2015-06-29 23:02:41 +02:00
is_boolean.output reorganized repo 2015-06-21 21:24:03 +02:00
is_discarded.cpp more documentation 2015-07-12 17:08:51 +02:00
is_discarded.link more documentation 2015-07-12 17:08:51 +02:00
is_discarded.output more documentation 2015-07-12 17:08:51 +02:00
is_null.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_null.link add online examples 2015-06-29 23:02:41 +02:00
is_null.output reorganized repo 2015-06-21 21:24:03 +02:00
is_number_float.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_number_float.link add online examples 2015-06-29 23:02:41 +02:00
is_number_float.output reorganized repo 2015-06-21 21:24:03 +02:00
is_number_integer.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_number_integer.link add online examples 2015-06-29 23:02:41 +02:00
is_number_integer.output reorganized repo 2015-06-21 21:24:03 +02:00
is_number.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_number.link add online examples 2015-06-29 23:02:41 +02:00
is_number.output reorganized repo 2015-06-21 21:24:03 +02:00
is_object.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_object.link add online examples 2015-06-29 23:02:41 +02:00
is_object.output reorganized repo 2015-06-21 21:24:03 +02:00
is_primitive.cpp fixed #97 2015-06-27 18:43:11 +02:00
is_primitive.link add online examples 2015-06-29 23:02:41 +02:00
is_primitive.output fixed #97 2015-06-27 18:43:11 +02:00
is_string.cpp reorganized repo 2015-06-21 21:24:03 +02:00
is_string.link add online examples 2015-06-29 23:02:41 +02:00
is_string.output reorganized repo 2015-06-21 21:24:03 +02:00
is_structured.cpp fixed #97 2015-06-27 18:43:11 +02:00
is_structured.link add online examples 2015-06-29 23:02:41 +02:00
is_structured.output fixed #97 2015-06-27 18:43:11 +02:00
max_size.cpp reorganized repo 2015-06-21 21:24:03 +02:00
max_size.link add online examples 2015-06-29 23:02:41 +02:00
max_size.output reorganized repo 2015-06-21 21:24:03 +02:00
object.cpp fixed typos in comments for examples 2015-10-02 15:57:40 +02:00
object.link Cleanup 2015-10-03 13:16:59 +02:00
object.output reorganized repo 2015-06-21 21:24:03 +02:00
operator__equal__nullptr_t.cpp more documentation 2015-07-12 17:08:51 +02:00
operator__equal__nullptr_t.link more documentation 2015-07-12 17:08:51 +02:00
operator__equal__nullptr_t.output more documentation 2015-07-12 17:08:51 +02:00
operator__equal.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__equal.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__equal.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__greater.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__greater.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__greater.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__greaterequal.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__greaterequal.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__greaterequal.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__less.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__less.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__less.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__lessequal.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__lessequal.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__lessequal.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__notequal__nullptr_t.cpp more documentation 2015-07-12 17:08:51 +02:00
operator__notequal__nullptr_t.link more documentation 2015-07-12 17:08:51 +02:00
operator__notequal__nullptr_t.output more documentation 2015-07-12 17:08:51 +02:00
operator__notequal.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__notequal.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__notequal.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
operator__value_t.cpp fixed #97 2015-06-27 18:43:11 +02:00
operator__value_t.link add online examples 2015-06-29 23:02:41 +02:00
operator__value_t.output fixed #97 2015-06-27 18:43:11 +02:00
operator__ValueType.cpp worked on #91 2015-06-24 15:16:32 +02:00
operator__ValueType.link add online examples 2015-06-29 23:02:41 +02:00
operator__ValueType.output worked on #91 2015-06-24 15:16:32 +02:00
operator_deserialize.cpp more documentation 2015-06-22 23:21:49 +02:00
operator_deserialize.link add online examples 2015-06-29 23:02:41 +02:00
operator_deserialize.output more documentation 2015-06-22 23:21:49 +02:00
operator_serialize.cpp more documentation 2015-06-21 22:42:32 +02:00
operator_serialize.link add online examples 2015-06-29 23:02:41 +02:00
operator_serialize.output more documentation 2015-06-21 22:42:32 +02:00
operatorarray__key_type_const.cpp re-adding const version operator[] (#135, #159) 2015-12-21 08:42:42 +01:00
operatorarray__key_type_const.link re-adding const version operator[] (#135, #159) 2015-12-21 08:42:42 +01:00
operatorarray__key_type_const.output minor changes 2015-06-25 00:40:16 +02:00
operatorarray__key_type.cpp minor changes 2015-06-25 00:40:16 +02:00
operatorarray__key_type.link add online examples 2015-06-29 23:02:41 +02:00
operatorarray__key_type.output minor changes 2015-06-25 00:40:16 +02:00
operatorarray__size_type_const.cpp more documentation 2015-06-24 12:15:51 +02:00
operatorarray__size_type_const.link add online examples 2015-06-29 23:02:41 +02:00
operatorarray__size_type_const.output more documentation 2015-06-24 12:15:51 +02:00
operatorarray__size_type.cpp more documentation 2015-06-24 12:15:51 +02:00
operatorarray__size_type.link add online examples 2015-06-29 23:02:41 +02:00
operatorarray__size_type.output more documentation 2015-06-24 12:15:51 +02:00
parse__istream__parser_callback_t.cpp more documentation 2015-06-24 12:15:51 +02:00
parse__istream__parser_callback_t.link add online examples 2015-06-29 23:02:41 +02:00
parse__istream__parser_callback_t.output more documentation 2015-06-24 12:15:51 +02:00
parse__string__parser_callback_t.cpp more documentation 2015-06-24 12:15:51 +02:00
parse__string__parser_callback_t.link add online examples 2015-06-29 23:02:41 +02:00
parse__string__parser_callback_t.output more documentation 2015-06-24 12:15:51 +02:00
push_back__object_t__value.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
push_back__object_t__value.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
push_back__object_t__value.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
push_back.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
push_back.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
push_back.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
rbegin.cpp reorganized repo 2015-06-21 21:24:03 +02:00
rbegin.link add online examples 2015-06-29 23:02:41 +02:00
rbegin.output reorganized repo 2015-06-21 21:24:03 +02:00
README.cpp more tests 2015-06-30 00:12:18 +02:00
README.link add online examples 2015-06-29 23:02:41 +02:00
README.output small README fix 2015-06-29 23:20:33 +02:00
rend.cpp reorganized repo 2015-06-21 21:24:03 +02:00
rend.link add online examples 2015-06-29 23:02:41 +02:00
rend.output reorganized repo 2015-06-21 21:24:03 +02:00
size.cpp reorganized repo 2015-06-21 21:24:03 +02:00
size.link add online examples 2015-06-29 23:02:41 +02:00
size.output reorganized repo 2015-06-21 21:24:03 +02:00
swap__array_t.cpp more documentation 2015-06-24 12:15:51 +02:00
swap__array_t.link add online examples 2015-06-29 23:02:41 +02:00
swap__array_t.output more documentation 2015-06-24 12:15:51 +02:00
swap__object_t.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
swap__object_t.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
swap__object_t.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
swap__reference.cpp more documentation 2015-06-24 12:15:51 +02:00
swap__reference.link add online examples 2015-06-29 23:02:41 +02:00
swap__reference.output more documentation 2015-06-24 12:15:51 +02:00
swap__string_t.cpp worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
swap__string_t.link worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
swap__string_t.output worked on #102: more documentation and examples 2015-07-08 16:55:29 +02:00
type.cpp fixed #97 2015-06-27 18:43:11 +02:00
type.link add online examples 2015-06-29 23:02:41 +02:00
type.output fixed #97 2015-06-27 18:43:11 +02:00

{
    "answer": {
        "everything": 42
    },
    "happy": true,
    "list": [
        1,
        0,
        2
    ],
    "name": "Niels",
    "new": {
        "key": {
            "value": [
                "another",
                "list"
            ]
        }
    },
    "nothing": null,
    "object": {
        "currency": "USD",
        "value": 42.99
    },
    "pi": 3.141,
    "size": 9
}