mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix json.marshal for Matrix
This commit is contained in:
@@ -161,6 +161,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
|
||||||
for i in 0..<info.count {
|
for i in 0..<info.count {
|
||||||
|
|||||||
Reference in New Issue
Block a user