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.


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