make response valid json