align convertion to runtime exception toJson, fromJson