MCPcopy Create free account
hub / github.com/christophhart/HISE / loadAsObject

Method loadAsObject

hi_scripting/scripting/api/ScriptingApiObjects.cpp:736–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736var ScriptingObjects::ScriptFile::loadAsObject() const
737{
738 var v;
739
740 auto r = JSON::parse(loadAsString(), v);
741
742 if (r.wasOk())
743 return v;
744
745 reportScriptError(r.getErrorMessage());
746
747 RETURN_IF_NO_THROW(var());
748}
749
750var ScriptingObjects::ScriptFile::loadEncryptedObject(String key)
751{

Callers

nothing calls this directly

Calls 4

varFunction · 0.85
parseFunction · 0.50
wasOkMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected