Add Json support, fix virtualenv support