Demo version. Fix json serialization.