Complant.toJSON method implemented