Return "return JsonDataPtr();" which is returning a JsonDataPtr containing null.

The what makes "from_null()" is that it's creating a JsonDataPtr to a valid JsonData object which represents JSON's null, which makes it a valid return value. If you return this, the message handling logic will think RedisMessageHandler was able to handle the message and it won't try any of the other handlers.