nexus_py_encode
NEXUS_PY_ENCODE Tagged JSON node for a MATLAB value sent to nexus_py_call.py. Internal helper for the py.* and pyrunfile transport (nexus#2364). The node format is documented at the top of nexus_py_call.py. Conversion follows MATLAB R2026a: scalar double -> float, scalar integer -> int, scalar logical -> bool, char row / string scalar -> str, cell -> tuple, scalar struct -> dict, other numeric/logical arrays -> array.