Got toJson working