TDJSON.opToJSONOp not getting correct values


I’m not getting correct values from TDJSON.opToJSONOp when the values of the parameters are coming from an expression or bind. Im on Windows 11 using 2022.32120.

testBugTDJSON.toe (5.5 KB)



The ‘val’ given in your example is actually the value of the parameter if you set it to constant mode. Setting extraAttrs=[‘eval’] will replace that ‘val’ with the evaluated value instead.

Fair warning, I plan to make a change in upcoming experimental where instead of replacing ‘val’ with the evaluated value, there will be a separate ‘eval’ member of the JSON dict.


amazing Ivan, sorry for the confusion!!

No apologies. That is my not-very-clear design that is the problem!

1 Like