You need to make sure you're using the modified code, not an installed version.
cd C:\Users\Krish\Downloads\new_http\httpie
pip install -e .Then test with:
python -m httpie POST https://httpbin.org/post "data:={\"bad json\"}"cd C:\Users\Krish\Downloads\new_http\httpie
set PYTHONPATH=%CD%
python -m httpie POST https://httpbin.org/post "data:={\"bad json\"}"cd C:\Users\Krish\Downloads\new_http\httpie
python -m httpie POST https://httpbin.org/post "data:={\"bad json\"}"python -m httpie POST https://httpbin.org/post "data:={\"bad json\"}"python -m httpie POST https://httpbin.org/post "data:={\"bad json\"}"python -m httpie POST https://httpbin.org/post data:='{"bad json"}'http: error: 'data:={"bad json"}': Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
http: error: 'data:={"bad json"}': Invalid JSON provided in request body.
Check your quotes, commas, and brackets.
Example:
data:='{"name": "John"}'
Check which version is being used:
python -c "import httpie.cli.requestitems; print(httpie.cli.requestitems.__file__)"Should show: C:\Users\Krish\Downloads\new_http\httpie\httpie\cli\requestitems.py
If it shows a different path (like in site-packages), you need to install in dev mode:
pip install -e .