util function to convert JSON to map at level 1
util function for checking isEmpty on map
enabled register api