Well, if I do something like: ``` val resultObj =...
# javascript
n
Well, if I do something like:
Copy code
val resultObj = JSON.parse<ResultObject>(json)
where
ResultObject
is the object that I want the JSON to de-serialize into, I do get an object back and yes, I can access some of the fields. The problem here is, it's not a
ResultObject
. It's just a plain old JS object! It doesn't contain the methods in
ResultObject
. Also, if I try to de-serialize a list into a property, it instead de-serializes the list as an array. This causes major problems when I try to access the property (in the
ResultObject
class, it's defined as a
List
). Basic things like
resultObj.exampleList.first()
don't work.