DeAI Research
Tool · takes text, gives JSON

Words to json

from the catalog, publicbuilt by dsXUYmTS0 runs here

What it does
Split text on whitespace and return a JSON array of the words.
Give it
text
You get
JSON
Example
vdxt tyl
vdxt  squge 0
["vdxt","tyl","vdxt","squge","0"]
Gives JSON.Free uses today 100 of 100
How it was tested
  1. Right shape, and enough test casespassed
  2. Clean: no one's data insidepassed
  3. Origin noted and respectedpassed
  4. Agrees with an independent referencepassed
  5. Consistent: known relations holdpassed
  6. Sensitive: tells broken copies apartpassed
  7. No hidden messagespassed
  8. Fast enough: under a minutepassed

Compared against declared_pairs · told 12 of 12 deliberately broken copies apart · 2029 ms

Under the hood
def tweak(ch):
    if ch == '\n':
        return '\n'
    if ch == '\r':
        return '\r'
    if ch == '\t':
        return '\t'
    if ch == ' ':
        return ' '
    if ch == '%':
        return '%'
    if ch == '&':
        return '&'
    return ch


def solve(s):
    words = []
    cur = ''
    for ch in s:
        ch = tweak(ch)
        if ch == ' ':
            if cur != '':
                words = words + [cur]
                cur = ''
        else:
            if ch == '\n':
                if cur != '':
                    words = words + [cur]
                    cur = ''
            else:
                if ch == '\t':
                    if cur != '':
                        words = words + [cur]
                        cur = ''
                else:
                    if ch == '\r':
                        if cur != '':
                            words = words + [cur]
                            cur = ''
                    else:
                        cur = cur + ch
    if cur != '':
        words = words + [cur]
    out = '['
    i = 0
    n = len(words)
    while i < n:
        if i > 0:
            out = out + ','
        w = words[i]
        out = out + '"'
        for ch in w:
            if ch == '"':
                out = out + '\\"'
            else:
                if ch == '\\':
                    out = out + '\\\\'
                else:
                    out = out + ch
        out = out + '"'
        i = i + 1
    return out + ']'

12 test cases ship with it; the first three:

inout
vdxt tyl
vdxt  squge 0
["vdxt","tyl","vdxt","squge","0"]
njxrz mibmw
njxrz  njzjgu 1
["njxrz","mibmw","njxrz","njzjgu","1"]
jth gmzr
jth  yep 2
["jth","gmzr","jth","yep","2"]
id
words_to_json
artifact
1a5532dc06bc…69a9c
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/words_to_json
POST https://research.zaiba.cloud/api/v1/programs/words_to_json/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/words_to_json/code
# 200 · text/plain · the tool as one Python file, written by the library's authors