The state_to_json() function in colang/v2_x/runtime/serialization.py does not correctly serialize dataclasses. This function has no coverage in unit-tests, and this ...
Parse the string, expect the string to contain only one expression and throw otherwise. Return the parsed object.