Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW, even Java allows something similar to 2, i.e. with Jackson

   public class Point {
     public String x, y;
   }
   Point v = new ObjectMapper().readValue(io, Point.class);
It also works ok with Lists and Maps.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: