Blender Libraries: Add JSON Library.

Several areas within blender can benefit a JSON reader/writer library.
Areas like the asset browser, XR and grease pencil.

After looking at the available options we selected nlohmann's JSON for
modern C++ library. It is actively maintained for over 10 years and
flexible.

This patch only adds the header only implementation of the library so it
can be used by different areas. The asset browser project is planning to
add a small abstraction layer so it will be easier to switch between
several different serialization formats. This is currently in
development in D12544.

In cases the abstraction layer can be an overhead and undesired to be used.
In this case the header file can be directly included.

Reviewed By: Severin

Maniphest Tasks: T91430

Differential Revision: https://developer.blender.org/D12567
This commit is contained in:
Jeroen Bakker 2021-09-22 09:06:56 +02:00 committed by Jeroen Bakker
parent 4c156cba21
commit 0c59386110
Notes: blender-bot 2023-02-14 08:40:26 +01:00
Referenced by issue #91430, AssetBrowser: Add JSON/Yaml parsing library
2 changed files with 26645 additions and 0 deletions

5
extern/json/README.blender vendored Normal file
View File

@ -0,0 +1,5 @@
Project: JSON
URL: https://github.com/nlohmann/json/
License: MIT License
Upstream version: 3.10.2
Local modifications: None

26640
extern/json/include/json.hpp vendored Normal file

File diff suppressed because it is too large Load Diff