implemented JSON serialization of nested dynamic arrays (e.g. "array of array of integer")