returning correct json from bom