JavaEE 7 brings an API for JSON arrays (the surprising JsonArray ;)), Java 8 brings a stream API and lambdas so now you can combine both to create a JsonArray from a Collection!
Json API (JavaEE 7) + Java 8: collection to JsonArray
3 Replies
JavaEE 7 brings an API for JSON arrays (the surprising JsonArray ;)), Java 8 brings a stream API and lambdas so now you can combine both to create a JsonArray from a Collection!
JSR 353 is part of JavaEE 7 and until today mainly glassfish implementation was available (found also https://github.com/vvakame/jpp-jsr353-impl on github). Since Apache will need its implementation (TomEE and CXF for instance ;)) and since JSon is a very common need at Apache, creating an incubator project for it didn’t create a big debate.