extent map to json converter
refactored body id generation