http handling preliminarily finished (json conversion function introduced)