Errors resolved
toString() not used for JSON conversion anymore