created json variables

created variables for each json element and created return statement to
test