Skip to content

Resolve Order

Hawkmax edited this page Oct 10, 2025 · 2 revisions

Its totaly normal to get confused between all these different features RichJSON has, which is why we decided to make the Resolve Order more transparent:
PS.: This isn't a joke:3

flowchart TD
    Z[RichJSON Apply] --> |root struct| A
    A[Current Struct/Array] --> B
    B{Is Struct}
    B  --> |yes| C
    C[
        Executing If Existing:
        1. #twin
        2. Constructor
        3. Inheritances
    ] --> E
    B --> |no| E
    E[Foreach Member Resolve] --> F
    E --> |finished foreach| K
    F{Is Struct/Array}
    F --> |yes -> RichJSON Apply| A
    F --> |no| H
    H{Is RichJSON String}
    H --> |yes| I
    H --> |no| J
    I[Execute Commands] --> J
    J[Next] --> E
    K{Is Struct}
    K  --> |yes| L
    K  --> |no| N
    L[
        Executing If Existing:
        1. Key Commands
        2. Interfaces
    ] --> N
    N[Return Current Struct/Array]   

Loading

Clone this wiki locally