Support for output of nested json objects and arrays