Typescript Convert Json Object To Dictionary