json logging in file on sd card