json post and get request with jbuilder