tag:blogger.com,1999:blog-7409597408023081712.post537782503158093748..comments2024-03-07T06:50:03.725+01:00Comments on Random Thoughts on Java Programming: Casting JSON Object to TypeScript ClassTurbohttp://www.blogger.com/profile/05959847299811800007noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7409597408023081712.post-13681256420011359322019-04-04T08:12:13.475+02:002019-04-04T08:12:13.475+02:00That's a shame. I thought long and hard about ...That's a shame. I thought long and hard about it, and currently I'm using simple Data Classes to contain the data, without any code. I don't like it.<br /><br />Perhaps I should just create a constructor in my dataClass that accepts a JSON Object.Turbohttps://www.blogger.com/profile/05959847299811800007noreply@blogger.comtag:blogger.com,1999:blog-7409597408023081712.post-60819698694744403932018-06-15T22:50:53.371+02:002018-06-15T22:50:53.371+02:00We've found that casting doesn't work on n...We've found that casting doesn't work on nested objects including dates. Only the top level is actually cast. If your subproperty is defined as an object, its still being returned as a string.Anonymoushttps://www.blogger.com/profile/04455740601557699916noreply@blogger.comtag:blogger.com,1999:blog-7409597408023081712.post-22809413495776624412017-06-10T14:31:10.674+02:002017-06-10T14:31:10.674+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/00136711435390440532noreply@blogger.com