Json parsing problem tcp input

You have configured the tcp input with a json codec. It expects valid json, which "null\r" is assuredly not.