dataToFile()
dataToFile(string $data, string $file) : array
Creating JSON file from data.
Parameters
string | $data | → JSON data |
string | $file | → path to the file |
Throws
- \MiotApi\Exception\JsonException