Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Debunking the myths about parsing JSON in Swift. Parent comment
What I'd really like is a way to write my POD types as normal:
class Foo { int bar; String baz; ArrayList<String> blah; ArrayList<Xyz> xyzs; } class Xyz { String name; int value; }
... Parser<Foo> p = new Parser<Foo>(); Foo f; try { f = gp.parse(input); } catch (JsonParseException e) { ... }
There are no comments on this comment yet.
What I'd really like is a way to write my POD types as normal:
And then just write this to parse it all. I'd be willing to accept having to annotate some of the fields, (but other than that, this should be possible to do).