Ruby Using JSON in chef cookbook attributes One of the little niggles with chef that annoys me is the fact you can't use a JSON file for cookbook attributes, yet role and node attributes are in JSON, instead you're stuck with having to transpose between ruby and JSON. This little trick works around