Expand dotted 2D array to multidimensional array using JSON