The JsonObject and JsonArray data types can be used to simplify the process of transferring data between AL and ControlAddIns. Check out the video:

https://youtu.be/1DxKyvn86Zg