maybe also add that it defaults to json when its an object or array