_parseJson#

Fully qualified name: usd_optimize::_parseJson

bool usd_optimize::_parseJson(
const PXR_NS::UsdStageWeakPtr &usdStage,
const std::string &str,
ExecutionContext *context = nullptr,
)#

Execute one or more operations on a stage based on a JSON configuration.

The str parameter can either be a path to a file on disk containing JSON or it can be a JSON string.

If no ExecutionContext is provided then a default one will be created.

Parameters:
  • usdStage – The Usd Stage to operate on.

  • str – Filepath or JSON data

  • context – The execution context

Returns:

Success