add json conversion for lists