creating class responsible for manage serial objects in json format