Actually writes JSON now instead of just reading it...