Custom types as input/output in resthopper

Let’s imagine that you want to execute different GH definitions using Resthopper and you want to be able to pass custom objects between them.

Is there any way of specifying custom types (with custom type_codes) so they can be passed in between the different GH definitions? If not, is there any way of using the generic “data” type in GH to pass whatever type in between them? I couldn’t find a type_code for “data” or “generic object” anywhere.

We have come around this problem using a simple string and the ToJSON and FromJSON functionality embedded in RC and our custom object model but we would like to know if there is any other way of doing this without having to serialize and deserialize all the time the information at the beginning and the end of our definitions.

Thanks in advance!

cc/ @DavidRutten

1 Like