sending response in json format - indentation fix