I am a curious sole, and when I saw that Apple had a map I wanted to see the API
of it (at the time of writing it is not official).
I wrote this litle script which should be executed in the developer toolbar. It allows you to get json object of the properties, functions, methodes an structur of any javascript object.
Please do use it and please put GISTs of the objects you convert to JSON. May I suggest that you name them the name that is autogenerated from the script.
mapkit becomes
mapkitAsJSON.json
Wouldnt it be a great idea to share the gists you make on twitter using the hashtag asjson
:-)
You may tweet to me with comments: @netsi1964
- Make conversion recurisive
- Better function parameters detection
- Perhaps better output, as markdown?
- Perhaps option to push output to node.js service on heroku - perhaps even make a "canIUse" lookup of javascript objects so that we have a general repository of known javascript browser objects :-) (help needed!)
Started: 7. jun. 2016 Updateded: 7. jun. 2016, 21.44