I am using JSON data transforms in my service configuration to build a JSON payload. I have a data structure in place that has objects that include themselves, i.e. I have a page-list of type Data-Product called Products, this includes a page-list of type Data-Product called SubProducts.
I have created a JSON data transform in the Data-Product class to build the JSON payload for the Products, I then include the same transform to build the payload for the Sub Products as the content is the same.
At save time this works fine, the rule saves without issue, however at runtime no output is produced (with no errors in the tracer of the logs). If I copy the rule and give it a different name and call this for the Sub Products all is fine.
This suggests an issue with recursively calling a JSON data transform, there is no such issue with regular transform rules.
Has anyone seen similar and managed to overcome this, as it stands this greatly limits the flexibility of my service to return nested data.
***Edited by Moderator Rupashree to add Capability tags***