close #2
close #2 moving json middleware
close #2 fixing problem of str in headers