parse json into css, supports nesting