refactoring
fix bug  returned json has wrong syntax