KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Web interface, JSON Re: Web interface, JSON

  • grigora

    Member
    September 12, 2023 at 12:00 am

    Thanks, that’s good to know. However, it only appears to work with plain tables, not other structures, e.g. dictionary of tables.

    f1:{([]c1:`a`b`c;c2:1 2 3)} / works, but you can do the same with CSV
    
    f1:{ (`t1`t2)! (([]c1:`a`b`c;c2:1 2 3);([]c1:`d`e`f;c2:4 5 6)) } / breaks, even though the structure is serializable through JSON
    wget http://localhost:5000/test.json?f1[] -O test.json
    --2023-09-12 15:27:40-- http://localhost:5000/test.json?f1[]
    Resolving localhost (localhost)... 127.0.0.1
    Connecting to localhost (localhost)|127.0.0.1|:5000... connected.
    HTTP request sent, awaiting response... 400 Bad Request
    2023-09-12 15:27:40 ERROR 400: Bad Request.