map uses json encoding when packaging for db