Wrap messages JSON with root resource