Now the JSON is stripped (remove spaces before and after : and remove \n and \r). In this way we can parse the message even if it is not exactly in standard ruby JSON