bee-san / bee-san/pyWhat

JSON output is not valid.

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.3k
Forks
391
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The JSON output has new lines in multiple places, which is breaking the JSON structure.

**To Reproduce**
Steps to reproduce the behavior:
1. Open Termux app
2. Run command `pywhat --json "abc@example.com | jq`

**Expected behavior**
A clear and formatted output of the resulting json.

**Screenshots**

![Image](https://github.com/user-attachments/assets/e89269d2-ebf7-4d92-b089-bf7b9a1bb19b)

**Smartphone (please complete the following information):**
- Device: POCO F4
- OS: Android 14
- Terminal app: Termux v0.118.3

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Termux with `pywhat --json "abc@example.com" | jq` and inspect the CLI path that produces JSON output. Confirm the output can be parsed by `jq` and that embedded newlines no longer break the JSON structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.