News for hackers. Stuff that matters.
Re:JavaScript is Good, Actually by noicebrewery on Wednesday May 16, 2018 @02:58AM (#17080498)
JSON has its strengths and weaknesses, and while Java doesn't have first class support for it the Jackson libraries are excellent!
Re:JavaScript is Good, Actually by rjbwork on Wednesday May 16, 2018 @04:14AM (#17080773)
Unfortunately given that java does type erasure, you don't get the kind of full featured JSON lib that Json.Net is in the .NET world. Presumably you'd have to somehow annotate to the deserializer what each individual list/array's generic type is for it to properly deserialize, separate from the type definition itself.
Re:JavaScript is Good, Actually by BlackFly on Wednesday May 16, 2018 @04:41AM (#17080886)
I'm not sure what scenario you are envisioning. Type erasure does not completely eradicate generic type information, reflection can still be used to infer generic usage for deserialization and dependency injection (and is done in Jackson and Spring). To make your life easier in doing so, there is:

https://github.com/jhalterman/typetools