JSON-RPC question to get values from nested containers

If I have nested containers with leafs in each of them like below. How can I get the values of all leafs in one call. Which JSON RPC method do I use?

container 1 {
leaf 1

container 2 {
leaf 2

container 3 {