parse bg from json