Browse Source

Fix json.marshal for Matrix

gingerBill 3 years ago
parent
commit
cdf881a378
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/encoding/json/marshal.odin

+ 3 - 0
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:
 	case runtime.Type_Info_Relative_Slice:
 		return .Unsupported_Type
 		return .Unsupported_Type
+		
+	case runtime.Type_Info_Matrix:
+		return .Unsupported_Type
 
 
 	case runtime.Type_Info_Array:
 	case runtime.Type_Info_Array:
 		io.write_byte(w, '[') or_return
 		io.write_byte(w, '[') or_return