Typescript Create Dynamic Json Parsing Python Snake