JSON codec for namespace_info.

Change-Id: Ibc417e382088f13ca08c4345912b99915a9f76eb