Change JSON format to make it queryable.