In Your JSON
Jump to navigation
Jump to search
In Your JSON is an esoteric method of writing Brainfuck created by Blair Myhre in 2023. As the name might suggest, code is written in a JSON file, then transpiled and executed. Each individual action (e.g. +
) is written as a value in a unique key, like so: "Action1": "+"
Keys MUST be unique and follow the formula of ActionX
. Therefore, a program may look like this:
{ "Action1": ",", "Action2": "[", "Action3": ".", "Action4": ",", "Action5": "]" }
NodeJS Translator
Use in tandem with a Brainfuck JavaScript interpreter:
function iyj(file) { let x = "" for (let i = 0; i < Object.keys(file).length; i++) { x += file[`Action${i + 1}`] } return x }
Note that this code will end with an error if a key is not named ActionX
as described above. This is the most basic way to write it.
Python Translator
Use in tandem with a Brainfuck Python interpreter:
iyj=lambda c:"".join(__import__("json").loads(c)[f"Action{i+1}"] for i in range(len(list(__import__("json").loads(c).keys()))))
Note that this code will end with an error if a key is not named ActionX
as described above. This is the most basic way to write it.