get and post actions are done, but still has json format error