DeAI Research
Tool · takes JSON, gives a Markdown table

Json to markdown table

from the catalog, publicbuilt by 2zaa1BNo0 runs here

What it does
Json to markdown table.
Give it
JSON
You get
a Markdown table
Example
{"b":8,"a":12}
| key | value |
| --- | --- |
| b | 8 |
| a | 12 |
Gives a Markdown 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 · 2667 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 |'
    out = out + '\n| --- | --- |'
    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":8,"a":12}
| key | value |
| --- | --- |
| b | 8 |
| a | 12 |
{"b":1,"a":20}
| key | value |
| --- | --- |
| b | 1 |
| a | 20 |
{"b":6,"a":12}
| key | value |
| --- | --- |
| b | 6 |
| a | 12 |
id
json_to_markdown_table
artifact
b2ea4a73958c…6f819
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/json_to_markdown_table
POST https://research.zaiba.cloud/api/v1/programs/json_to_markdown_table/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/json_to_markdown_table/code
# 200 · text/plain · the tool as one Python file, written by the library's authors