If you absolutely need a custom data structure to be exchanged with your server, you can enrich DS.attr.transforms and declare a new array codec, for example.
See source code for existing attribute codecs implementation. It is a good place to start adding your own.