In my very simplified repro, I have an app with the following dataset:

The app itself is trivial, with just an INPUT block that uses this dataset:

I then have an agent that uses this app. When trying to use the agent, I consistently get:
ERROR: Failed to build the specification for action pynkiTnxhr, (code: build_spec_error)
I've fiddled with it in various ways, and the presence of the JSON prop is definitely what triggers it. My test app is dXi49W8WCQ (I can give you the whole URL, but not sure if sharing the workspace ID is in any way sensitive).