added quick and dirty fix for bug in empty json list generation.