avoid decoding data to redecode it one line after, we assume the data is json since we validate it on input