route serialize JSON dg