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
In my case, my frontend will let the user upload a JSON file, wich will then be parsed to an object, or an array (depending on the file that the user uploads) using assembly-script. I don't really know how to do it because most libs require a class / type in advance to specify what the json will be like.
possible file examples:
"[
{name: "Henrique},
]"
"{
car: "mustang",
amount: 1400,
}"
as you can see, the string doesnt match any pattern, and therefore the output of the function will be unknown as well (object with objects inside, array of objects, etc)
Any idea on how to do it?
The text was updated successfully, but these errors were encountered:
In my case, my frontend will let the user upload a JSON file, wich will then be parsed to an object, or an array (depending on the file that the user uploads) using assembly-script. I don't really know how to do it because most libs require a class / type in advance to specify what the json will be like.
possible file examples:
"[
{name: "Henrique},
]"
"{
car: "mustang",
amount: 1400,
}"
as you can see, the string doesnt match any pattern, and therefore the output of the function will be unknown as well (object with objects inside, array of objects, etc)
Any idea on how to do it?
The text was updated successfully, but these errors were encountered: