request data from server with json
fix bugs of code repeat
test version