Right now we are checking for string only, json encode otherwise. Need to support maybe false, empty, stream etc..