This would be useful when the list is converted to JSON for consumption by JS code on client side. It ensures you get the exact order of values since if a flat key/value array is converted to JSON object you can't be sure of the order of the object properties.
I chose this form of nesting since it's also supported by FormHelper, so one can use same format for Cake's HTML views and json APIs.
This would be useful when the list is converted to JSON for consumption by JS code on client side. It ensures you get the exact order of values since if a flat key/value array is converted to JSON object you can't be sure of the order of the object properties.
I chose this form of nesting since it's also supported by FormHelper, so one can use same format for Cake's HTML views and json APIs.