dynamic generate json with jbuilder