route serialize JSON