fixes to get_json, contextmenu disabled can be a function - close #513