Also accepting strings, not only json objects