basic http json implementation based on chuck norris example