Skip to content

Comments

unix-ffi/json: Fix json.loads() of a bytes object.#1084

Open
dhouck wants to merge 1 commit intomicropython:masterfrom
dhouck:json-loads-bytes
Open

unix-ffi/json: Fix json.loads() of a bytes object.#1084
dhouck wants to merge 1 commit intomicropython:masterfrom
dhouck:json-loads-bytes

Conversation

@dhouck
Copy link

@dhouck dhouck commented Feb 18, 2026

The conversion from bytes to string previosuly only if some other argument was also given to loads. This makes even a basic call with no other arguments work.

NOTE: The test_json.py file fails, and failed before this PR, because of #1083. If I patch scanner.py to only parse ints (and thus not need optional groups), the tests pass.

The conversion from bytes to string previosuly only if some other
argument was also given to `loads`.  This makes even a basic call with
no other arguments work.

Signed-off-by: Daniel Houck <Software@DRHouck.me>
@dhouck dhouck changed the title Fix json.loads() of a bytes object unix-ffi/json: Fix json.loads() of a bytes object. Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant