JSON codec for service_info.

Change-Id: I64b1b468c508672d6ed2e35f10f5b91849ccc21b