What do you mean by “set the value to a 2D list”? You can only set list item values. So are you asking how to add a list as a list item?
I have a feeling using JSON (and perhaps Firebase) is going to be easier than trying to use two-dimensional lists but I don’t have a ton of experience with them.