Skip to content

Commit

Permalink
starting to integrate MessagePack (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Nov 11, 2016
1 parent 9ca00e4 commit 543745a
Show file tree
Hide file tree
Showing 146 changed files with 1,874 additions and 0 deletions.
493 changes: 493 additions & 0 deletions src/json.hpp

Large diffs are not rendered by default.

494 changes: 494 additions & 0 deletions src/json.hpp.re2c

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ add_executable(${JSON_UNITTEST_TARGET_NAME}
"src/unit-json_patch.cpp"
"src/unit-json_pointer.cpp"
"src/unit-modifiers.cpp"
"src/unit-msgpack.cpp"
"src/unit-pointer_access.cpp"
"src/unit-readme.cpp"
"src/unit-reference_access.cpp"
Expand Down
1 change: 1 addition & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SOURCES = src/unit.cpp \
src/unit-json_patch.cpp \
src/unit-json_pointer.cpp \
src/unit-modifiers.cpp \
src/unit-msgpack.cpp \
src/unit-pointer_access.cpp \
src/unit-readme.cpp \
src/unit-reference_access.cpp \
Expand Down
Binary file added test/data/json.org/1.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json.org/2.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��menu��popup��menuitem���onclick�CreateNewDoc()�value�New��onclick�OpenDoc()�value�Open��onclick�CloseDoc()�value�Close�id�file�value�File
Binary file added test/data/json.org/3.json.msgpack
Binary file not shown.
Binary file added test/data/json.org/4.json.msgpack
Binary file not shown.
Binary file added test/data/json.org/5.json.msgpack
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip01.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip02.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip03.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Binary file added test/data/json_roundtrip/roundtrip04.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip05.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��foo
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip06.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip07.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Binary file added test/data/json_roundtrip/roundtrip08.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip09.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��foo�bar
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip10.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a��foo�bar
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip11.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Binary file added test/data/json_roundtrip/roundtrip12.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip13.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
����� �~�
Binary file added test/data/json_roundtrip/roundtrip14.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip15.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip16.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�����
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip17.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
������
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip18.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��"�}�
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip19.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
���������
Binary file added test/data/json_roundtrip/roundtrip20.json.msgpack
Binary file not shown.
Binary file added test/data/json_roundtrip/roundtrip21.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip22.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��?���n��
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip23.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�˿���n��
Binary file added test/data/json_roundtrip/roundtrip24.json.msgpack
Binary file not shown.
Binary file added test/data/json_roundtrip/roundtrip25.json.msgpack
Binary file not shown.
Binary file added test/data/json_roundtrip/roundtrip26.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip27.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
���������
Binary file added test/data/json_roundtrip/roundtrip28.json.msgpack
Binary file not shown.
Binary file added test/data/json_roundtrip/roundtrip29.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip30.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��9� ����
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip31.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��F/)��U�
1 change: 1 addition & 0 deletions test/data/json_roundtrip/roundtrip32.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��F/)��U�
Binary file added test/data/json_tests/pass1.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/json_tests/pass2.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��������������������Not too deep
1 change: 1 addition & 0 deletions test/data/json_tests/pass3.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��JSON Test Pattern pass3��In this test�It is an object.�The outermost value�must be an object or array.
Binary file added test/data/json_testsuite/sample.json.msgpack
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
���1�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
����
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��M�2�2�X�
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�˯����h��
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�Ѕ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��D���MՒ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��?�z�G�{
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��P���O§
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��?�z�G�{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�{
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��@^�<�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��dfg�fgh�asd�sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��asd�sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a�c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a�b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��max�E�'�/��min���'�/�
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a�
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a�b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��`Īካ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��𝄞
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��𐐷
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��😹💍
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
��"\/

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��\u0000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a/*b*/c/*d//e
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��\a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��\n
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��￿
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��asd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��asd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��􏿿
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��new line
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��􏿿
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��𛿿
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��￿
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��,
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��π
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��asd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��ࠡ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��ģ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��aクリス
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��ꙭ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��\
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��⍂㈴⍂
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��​
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��⁤
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��€𝄞
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��aa
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
˿�������
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�asd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Binary file added test/data/regression/floats.json.msgpack
Binary file not shown.
Binary file added test/data/regression/signed_ints.json.msgpack
Binary file not shown.
Binary file added test/data/regression/unsigned_ints.json.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions test/data/regression/working_file.json.msgpack
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��FullScreenãFOVZ�AmbientOcclusion®RenderDistance�WindowResX���WindowResY�8�MipmapLevel�VSyncôAnisotropicFiltering
Loading

0 comments on commit 543745a

Please sign in to comment.