Change JSON data structure