Class Kson

java.lang.Object
org.nustaq.kson.Kson

public class Kson extends Object
a simple text <=> object serialization. More readable than JSon, less complication/error prone than Yaml.

Main use is configuration files. - Supports Pojo's only. - No multidimensional or nested arrays. - No untyped Arrays (e.g. Object x[] = new byte[] { 1, 2}) - Collections: Map and List. Use Generics to type collections (can omit type tags then) Example from fast-cast:

     public static ClusterConf readFrom( String filePath ) throws Exception {
       return (ClusterConf) new Kson()
              .map(PublisherConf.class, SubscriberConf.class, TopicConf.class, ClusterConf.class)
              .readObject(new File(filePath));
   }