switch inventory data format to JSON; load_inventory() function