fix cbor.to_json always returning array of tuples for objects

to_json uses a small proc to check if all keys of an object are strings.
It was always returning false for any input.
This commit is contained in:
Alexis Caraballo
2024-10-29 01:50:38 -03:00
committed by GitHub
parent 5f99d6b427
commit 31d5bc48a7

View File

@@ -563,7 +563,7 @@ to_json :: proc(val: Value, allocator := context.allocator) -> (json.Value, mem.
case: return false
}
}
return false
return true
}
if keys_all_strings(v) {