The spark programming style of session.createDataset(javaObject, javaObject.class) is much more common in Spark 2.0. We need some kind of JS equivalent.
We should be support something like createDataset(jsObject, { fieldName : "String", fieldName2:"Integer"});
This will probably require creating a JSON encoder which is not derived from the RowEncoder.