diff options
| author | Juan Linietsky | 2017-01-08 22:40:00 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-08 22:40:00 -0300 |
| commit | 62273e51a252287d1c60228e8a8e8939ecaa73c6 (patch) | |
| tree | fd39af99bc9cc1e71a623a0efda3222c3633134d /tools/editor/asset_library_editor_plugin.cpp | |
| parent | fdc3380cf6e0d17b19bbf9458f641fd948aa2ffc (diff) | |
| download | godot-62273e51a252287d1c60228e8a8e8939ecaa73c6.tar.gz godot-62273e51a252287d1c60228e8a8e8939ecaa73c6.tar.zst godot-62273e51a252287d1c60228e8a8e8939ecaa73c6.zip | |
Diffstat (limited to 'tools/editor/asset_library_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/asset_library_editor_plugin.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/editor/asset_library_editor_plugin.cpp b/tools/editor/asset_library_editor_plugin.cpp index 986f23549..aca4a512f 100644 --- a/tools/editor/asset_library_editor_plugin.cpp +++ b/tools/editor/asset_library_editor_plugin.cpp @@ -29,7 +29,7 @@ #include "asset_library_editor_plugin.h" #include "editor_node.h" #include "editor_settings.h" - +#include "io/json.h" @@ -1076,8 +1076,16 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const } print_line("response: "+itos(p_status)+" code: "+itos(p_code)); + Dictionary d; - d.parse_json(str); + { + Variant js; + String errs; + int errl; + JSON::parse(str,js,errs,errl); + d=js; + } + print_line(Variant(d).get_construct_string()); |
