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
When I run that JSON through your gabs.ParseJSON function, I get no error whatsoever, some of the structure, but not all (only one level deep), and I only get the values on the top level.
I get VCALENDAR.VERSION and value of it. I get VCALENDAR.VTIMEZONE.DAYLIGHT, but no value and no sub-level. I get VCALENDAR.VEVENT.CREATED, but not value.
Is there some kind of restriction of depth or something?
The text was updated successfully, but these errors were encountered:
GoLand seems to have problems to correctly represent the gabs.Container during debugging. Only showing parts of the tree and values. Not sure why it's like that.
If you cast to something like that: gabs.Path("VCALENDAR.VEVENT.DTSTART").Data().(time.Time), you will get a ok = false. Casting to string works. Oh well, I am still trying to get my head around Go sometimes...
When you .parseJSON() and then print the resulting gabs.Container with .String(), the order is somewhat different.
The combination of the above was confusing me completely.
Anyway, I fixed my code, sorry for bothering. LFMF.
I have a very strange bug and am not sure if it is me or what is going wrong.
Take this JSON (I ran it through a validator, looks OK):
When I run that JSON through your gabs.ParseJSON function, I get no error whatsoever, some of the structure, but not all (only one level deep), and I only get the values on the top level.
I get VCALENDAR.VERSION and value of it. I get VCALENDAR.VTIMEZONE.DAYLIGHT, but no value and no sub-level. I get VCALENDAR.VEVENT.CREATED, but not value.
Is there some kind of restriction of depth or something?
The text was updated successfully, but these errors were encountered: