Finally managed to get the output of users lokoing ok with JSON. Tried using custom marshaller but it didn't work. Settled on transforming the results using the collect method.