Configuration Nodes

Hello everyone, i want to create in my plugin a system where you can add a spawn point, and wich teleport randomly on one.

I tried to get the children list of the node, but when i get the size it returns 0.

my code is simple

int size = rootNode.getNode("Teleportation", "spawn").getChildrenList().size();
broadcast(size);

it returns 0

but in my file i have this

Teleportation {
    spawn {
        "1" { // each element i know it's string it's not important here i think, i want to get the size and get one more.
            x=49.69695067463793
            y=64
            z=1.6302912075201765
        }
        pitch=0 // Here it is for the test if children list get these one and not the upper one.
        x=45.45297140348351 // but in each case, it returns 0
        y=64
        yaw=0
        z=8.151647141288333
    }
}

i’m in spongeforge 1.10 and the latest build i think. if someone can help me. please.
thank you

A list uses [...] and doesn’t have keys.

Teleportation {
    spawn [
        {
            x=49.69695067463793
            y=64
            z=1.6302912075201765
        }, {
            pitch=0
            x=45.45297140348351
            y=64
            yaw=0
            z=8.151647141288333
        }
    }
}

So what you’re looking for is getChildrenMap().

thx, but ca i get the size of maps?

or i will do like @JBYoshi said

thx for help

.size()