Browse Source

Merge pull request #4430 from Wyr0X/patch-1

fix cbor.to_json always returning array of tuples for objects
Laytan 9 months ago
parent
commit
47be77ead5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/encoding/cbor/cbor.odin

+ 1 - 1
core/encoding/cbor/cbor.odin

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