befor switch working
optimize json render method