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
Yes, in the docs for Struct, it mentions that fields need to be explicitly ordered; currently, to parse unordered fields, you need to make your type mutable struct with a Mutable() struct type. This may change in the future since I (and others) have been discussing solutions in #47
Hi,
Suppose I have two Structs one for Tweet and another for Author of the tweet as follows:
Now I have a Json String as :
I am trying to define a New Struct function and read the string in to value of type:
I am getting the following error:
Does the string need to match the exact order of the Struct? or Not sure where is the Issue. Though the
JSON3.read(json_str)
works fine.If someone can tell me:
The text was updated successfully, but these errors were encountered: