Why does `trends` not get converted to JSON here?