backporting jsonize rack