test for rest api && json encode && json tag in struct