News for hackers. Stuff that matters.
Re:JavaScript is Good, Actually by Vinnl on Wednesday May 16, 2018 @04:06AM (#17080749)
An advantage, however, is that you can directly encode Javascript data objects to JSON without having to annotate its fields or anything. I don't recall you being able to do that with Java.
Re:JavaScript is Good, Actually by imtringued on Wednesday May 16, 2018 @10:55AM (#17082882)
You can't do that with javascript either unless your data objects are acyclic and if they are then using a JSON parser for Java is equally trivial.
Re:JavaScript is Good, Actually by Vinnl on Thursday May 17, 2018 @02:15AM (#17089171)
You mean that if they are acyclic, you don't have to annotate the fields in Java either? Because the data objects I want to serialize usually are acyclic.