test dict to json
possible improve
remove unnecessary code
 test
 test2
 test3
 test4
 test5
 test6
 test7
 test8
before_request