Added json output to collection example