It is stored as a JSON collection with some optimizations on how the data arrives (via user change or sync).