Extend json api to support map id #