aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-20 15:02:55 +0100
committergingerBill <bill@gingerbill.org>2021-10-20 15:02:55 +0100
commitcdf881a3787c0649f2da66a954667c6779bfdb68 (patch)
tree851e9679b94483b0cca4989add0753d8e942baa9 /core/encoding
parente8c602b98f60f5cafd2ce28a059fd483a54b1716 (diff)
Fix json.marshal for Matrix
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/json/marshal.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin
index d2d908440..0c95df924 100644
--- a/core/encoding/json/marshal.odin
+++ b/core/encoding/json/marshal.odin
@@ -160,6 +160,9 @@ marshal_to_writer :: proc(w: io.Writer, v: any) -> (err: Marshal_Error) {
case runtime.Type_Info_Relative_Slice:
return .Unsupported_Type
+
+ case runtime.Type_Info_Matrix:
+ return .Unsupported_Type
case runtime.Type_Info_Array:
io.write_byte(w, '[') or_return