We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Ajsone

From Esolang
Jump to navigation Jump to search

Abusing JSON Esolang (Ajsone) is an esoteric programming language created by Alok Menghrajani. The language abuses JSON by using the JSON data format to represent everything: functions, variables, values, etc.

Examples

The following computes the factorial of 5.

 {
   "fact": {
     "=if": {
       "cond": {"=<=": {"in1": "=n", "in2": 1}},
       "then": 1,
       "else": {
         "t": {"=-": {"in1": "=n", "in2": 1}},
         "=*": {"in1": "=n", "in2": {"=fact": {"n": "=t"}}}}
     }
   },
   "=fact": {"n": 5}
 }

External resources