Code Snippets JSONiq

Short texts JSONiq 🧑‍💻 Code snippets JSONiq ✍️ Reading lists JSONiq 👀

validated_query.jq

declare type local:mytype as {“id”: “integer”, “label”: “integer”, “col_0”: “decimal”, “col_1”: “decimal”, “col_2”: “decimal”, “col_3”: “decimal”, “col_4”: “decimal”, “col_5”: “decimal”, “col_6”: “decimal”, “col_7”: “decimal”, “col_8”: “decimal”, “col_9”: “decimal”, “col_10”: “decimal”, “col_11”: “decimal”, “col_12”: “decimal”, “col_13”: “decimal”}; validate type local:mytype* { json-file(“https://gist.githubusercontent.com/daviddao/31652ddf8226143688ae3fe1008c0bb7/raw/15a9b0f9c005e5b42d575ef4701c8146cfc31bab/X_train.jsonl”) }