I am not the developer but I know some of what went into this decision. ACF uses built in WP functions for saving data and it also allow you to use built in WP functions to get the data if you choose to do so.
If the data was stored as JSON then you could not use
get_sub_field() this function is a wrapper for built in functions like
The decision was made so that built in WP functions can be used and also be able to know what data in belongs in each row.
ACF does what we can do using built in WP functions, it just makes it easier to build the admin fields.
ACF is also recursive, saving a sub field in a repeater works exactly the same a saving a field at the top level. If sub fields worked differently than top level fields then there would need to be different code for sub fields removing the ability to nest repeaters indefinitely.
Those are just some of the reasons
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.