generating ast from JSON of ATS source code