Expose functions that return `str` instead of `bytes`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start by locating the encode_canonical_json entry point and compare its bytes result with json.dumps, which returns str. Add the requested str-returning API and verify that canonical JSON output is available without a str/bytes conversion; the issue does not name specific files or tests.
Written by the indexing model from the issue text.
Description
It would be nice to get canonical json as str, as a drop-in replacement for json.dumps. Right now using encode_canonical_json for that means going back and forth between str and bytes which is wasteful.
Thanks!
- Dominant language
- Python
- Stars
- 30
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matrix-org/python-canonicaljson
-
JSON is RFC8259Open
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 38/100
matrix-org/python-canonicaljson#22 · 8 comments ·
All issues in matrix-org/python-canonicaljson
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PedestrianDynamics/pyFDS-Evac#199 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
521xueweihan/HelloGitHub#3790 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sandialabs/atlas-ui-3#978 ·
Maintainers usually reply within 1 day
-
area: tests perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EleutherAI/lm-evaluation-harness#4256 ·
Maintainers usually reply within 1 day