service and mock of json work; rendering in template