Spin://application/json - Database Retrieve

I am storing variable values as object into database using spin://application/json datatype. How can I retrieve this and how can i convert into json object.

Hello @vinothkumar ,

when saving a object with spin, it is saved serialized. The retrieved object is retrieved either directly with execution.getVariable(…) or explicitely with execution.getVariableTyped(…) which will return a TypedValue which is something like a SpinJsonValue. Here, the object can be unwrapped and mapped to the desired type.

I hope this helps


1 Like

Yes. Thanks a lot

1 Like