I just had to shout out YellowAfterlife’s awesome tool - json2typedef (github code). Paste in a JSON blob (and click out) and it generates a typedef.
This is a handy time saver when creating type definitions for libraries from their API documentation / examples.