JSON codec for service_info.

Change-Id: Ib261332bd4a6ef5e392070505dc310908223fcb8