fix old to_json to Oj.dump