added conv methods for json