I'm reading a json file in python which has huge amount of imported goods data with their names and taxes. I want to input an item name and search through that file to get tax of that item.
import json
with open("./Files/CD_Data.json") as file:
#item = input("Enter item name: ")
reader = json.load(file)
print(reader)
But when display all data then this error comes up.
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1626249: `character maps to <undefined>`
json.load(file.read())orjson.loads(file)? check the difference between.load()and.loads()encoding="utf8"