only stringify if it's a json object :)