created programD with ability to parse json request