| ▲ | whartung 2 hours ago | |
Well, this will be fun. I already have one of these (I'm sure I'm not alone). It's about 500 lines. I found I'm not a huge fan of the JAX-B-ish style serialization of Java objects for JSON. I don't want to really downplay them, they certainly have their uses, they're very popular, I just don't like fighting them. Hand writing JSON marshaling code has not been arduous for me (notably with my utility layer). (I also, philosophically, strive to avoid "magic" in my code as much as practical.) Of course, I still need a parser, I'm using GSONs parser, which means I'm still dragging in the whole bean level serialization infrastructure. I just don't use it. And while I've done JSON parsers before, I felt it was something better to import than maintain myself. So, in that sense, it's a mixed bag. But, I do enjoy using it. This will be a worthwhile JDK capability. Ideally it can replace mine. | ||