More simply:
sqlite> select typeof('{a:1}'->>'a') ; ╭──────────────────────╮ │ typeof('{a:1}'->>... │ ╞══════════════════════╡ │ integer │ ╰──────────────────────╯
sqlite> select typeof('{a:1}'->'a') ; ╭──────────────────────╮ │ typeof('{a:1}'->'a') │ ╞══════════════════════╡ │ text │ ╰──────────────────────╯
sgbeal•1h ago
More simply:
vs: