Exampel of converting list into json in java 8 (based on snipped on a.bien blog)