now returning json on rest resource, but still need to fix mapping