summaryrefslogtreecommitdiff
path: root/src/kyclogic/taler-exchange-kyc-oauth2-nda.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/kyclogic/taler-exchange-kyc-oauth2-nda.sh')
-rwxr-xr-xsrc/kyclogic/taler-exchange-kyc-oauth2-nda.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/kyclogic/taler-exchange-kyc-oauth2-nda.sh b/src/kyclogic/taler-exchange-kyc-oauth2-nda.sh
index 61c743c82..5af785f19 100755
--- a/src/kyclogic/taler-exchange-kyc-oauth2-nda.sh
+++ b/src/kyclogic/taler-exchange-kyc-oauth2-nda.sh
@@ -20,8 +20,11 @@ fi
# Next, combine some fields into larger values.
FULLNAME=$(echo "$J" | jq -r '[.first_name,.last_name]|join(" ")')
-echo "$J" | jq \
- --arg full_name "${FULLNAME}" \
- '{$full_name,"phone":.phone,"id":.id}'
+echo "$J" \
+ | jq \
+ --arg full_name "${FULLNAME}" \
+ '{$full_name,"phone":.phone,"id":.id}' \
+ | jq \
+ 'del(..|select(.==null))'
exit 0