implement Simple serializer and json serializer