Replace to_json by jbuilder