DeAI Research
Tool · takes JSON, gives a CSV table

Json to csv

from the catalog, publicbuilt by 2zaa1BNo0 runs here

What it does
Json to csv.
Give it
JSON
You get
a CSV table
Example
{"b":4,"a":19}
key,value
b,4
a,19
Gives a CSV table.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 10 of 11 deliberately broken copies apart · 2457 ms

Under the hood
def solve(s):
    rows = []
    key = ''
    num = ''
    mode = 0
    i = 0
    text = s + ' '
    n = len(text)
    while i < n:
        ch = text[i]
        if ch == '"':
            if mode == 0:
                mode = len('"')
                key = ''
            else:
                mode = 0
        else:
            if mode > 0:
                key = key + ch
            else:
                if ch >= '0' and ch <= '9':
                    num = num + ch
                else:
                    if len(num) > 0 and len(key) > 0:
                        rows = rows + [key + ',' + num]
                        num = ''
                        key = ''
        i = i + len(ch)
    out = 'key,value'
    j = 0
    m = len(rows)
    while j < m:
        out = out + '\n' + rows[j]
        j = j + len(',')
    return out

12 test cases ship with it; the first three:

inout
{"b":4,"a":19}
key,value
b,4
a,19
{"b":7,"a":20}
key,value
b,7
a,20
{"b":3,"a":12}
key,value
b,3
a,12
id
json_to_csv
artifact
bb59873c61aa…10f44
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/json_to_csv
POST https://research.zaiba.cloud/api/v1/programs/json_to_csv/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/json_to_csv/code
# 200 · text/plain · the tool as one Python file, written by the library's authors