Rewriting to pull from a JSON object.