add types to JsonService response. close #2