when plain text(true/false) is returned, fix this into JSON format for convenience