to_entries is worth knowing about, not least because it often leads to easy-to-read (variable-free) pipelines, as here:
to_entries
to_entries[] | select(.key|endswith("/")) | .value.type
jq solution:
jq
jq -r '. as $o | keys_unsorted[] | select(endswith("/")) | $o[.].type' file.json
The output:
tokenuserpass