C++ with Python JSON Pipeline#

Build JSON in C++ and select a value from Python.

Metadata#

  • Stable ID: json_pipeline.cpp_python.

  • Example type: Standalone example.

  • Entry point: main.py.

  • Source directory: source/examples/libraries/isaacsim_common/string/json_pipeline/cpp_python.

  • Languages: C++, Python.

  • APIs: isaacsim.common.string.

  • Topics: JSON.

  • Required distributions: isaacsim_common.

  • Required external Python packages: jsonpointer==3.1.1.

  • Required external C++ packages: nlohmann_json==3.12.0.

  • Required system capabilities: cmake, cpp, python, python_development.

Run the example#

Linux:

source/examples/example.sh run json_pipeline.cpp_python

Windows (PowerShell):

.\source\examples\example.bat run json_pipeline.cpp_python

See Build and run examples for setup and runner options.

About this example#

main.py calls an example-local C++ extension that uppercases a value with isaacsim.common.string, serializes it with nlohmann_json, and reads it with jsonpointer.