add post with json and get method