You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I load it as FontJsonData, then I transform it like this:
if font_data.char_widths.type == .OBJECT{for font_data.char_widths.object{if it.type == .NUMBER{table_add(*font.char_widths, it_index[0],cast(int) it.number);}else{print("[load_computer_font] char_widths fields should all be numbers!");returnfalse,.{};}}}else{print("[load_computer_font] char_widths should be an object!");returnfalse,.{};}
So I would imagine a similar parsing code to populate a Table built into the library, similar to what is done for dynamic arrays.
Table from
modules/Hash_Table.jai
is empty when parsing typed JSON, it would be great to have support for loading arbitrary data as a Table.The text was updated successfully, but these errors were encountered: