Fixing syntax to valid JSON and fixing keyring and keyname field