DeAI Research
Tool · takes numbers, gives JSON

Numbers to json

from the catalog, publicbuilt by u2ZPbvl50 runs here

What it does
Numbers to json.
Give it
numbers
You get
JSON
Example
69
-9
22
69
9.5
x9 69-22
…
[69,-9,22,69,9.5,9,69,22,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 · 1578 ms

Under the hood
def solve(s):
    bag = []
    piece = ''
    for ch in s + '\n':
        if ch in '0123456789':
            piece = piece + ch
        elif ch == '-' and piece == '':
            piece = piece + ch
        elif ch == '.' and piece != '' and piece != '-' and '.' not in piece:
            piece = piece + ch
        else:
            if piece != '' and piece != '-' and piece != '.' and piece != '-.':
                bag = bag + [piece]
            piece = ''
    body = ''
    started = False
    for piece in bag:
        if started:
            body = body + ','
        body = body + piece
        started = True
    return '[' + body + ']'

12 test cases ship with it; the first three:

inout
69
-9
22
69
9.5
x9 69-22
0
[69,-9,22,69,9.5,9,69,22,0]
40
-5
68
40
5.5
x5 40-68
1
[40,-5,68,40,5.5,5,40,68,1]
11
-6
37
11
6.5
x6 11-37
2
[11,-6,37,11,6.5,6,11,37,2]
id
numbers_to_json
artifact
0589959a49a3…57e88
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/numbers_to_json
POST https://research.zaiba.cloud/api/v1/programs/numbers_to_json/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/numbers_to_json/code
# 200 · text/plain · the tool as one Python file, written by the library's authors