Help: Convert nested RG into a single expression

I have a nested repeating group and am struggling with how to turn it into a single expression (to feed an eventual JSON output). The nested RG is two different data types, each with their own unique sort.

DataType: Chapter
* Chapter Sort
DataType: Sections (within a chapter)
* Section Sort

I’ve tried playing with groupings within an expression, but haven’t had much luck when I try to enforce BOTH datatypes sorting, which is critical. I can accomplish it with just the Chapter Sort, but as soon as I get to also include section sort (within each chapter) my data structure falls apart and I’m stumped.

In my head, the expression in its simplest terms is something like All Parent Chapters (chapter sections: sorted by section sort): sorted by Chapter Sort

Is this even possible?

Thanks!

Repeating groups can only have one data type so that’s probably the main issue you’re having.

I think the plugin store has a bunch of JSON creating plugins, maybe one of them lets you build JSON with the nested structure you want without actually needing the repeating group and it’s limitations

This topic was automatically closed after 70 days. New replies are no longer allowed.