added the data for a test case
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-20 01:37:03 +09:00
parent 1466bc32ce
commit f45aba56f2
2 changed files with 44 additions and 0 deletions

28
t/JSON.awk.in Normal file
View File

@ -0,0 +1,28 @@
{
"first_name": "John",
"last_name": "Smith",
"is_alive": true,
"age": 27,
"address": {
"street_address": "21 2nd Street",
"city": "New York",
"state": "NY",
"postal_code": "10021-3100"
},
"phone_numbers": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "office",
"number": "646 555-4567"
}
],
"children": [
"Catherine",
"Thomas",
"Trevor"
],
"spouse": null
}

16
t/JSON.awk.out Normal file
View File

@ -0,0 +1,16 @@
["first_name"] "John"
["last_name"] "Smith"
["is_alive"] true
["age"] 27
["address","street_address"] "21 2nd Street"
["address","city"] "New York"
["address","state"] "NY"
["address","postal_code"] "10021-3100"
["phone_numbers",0,"type"] "home"
["phone_numbers",0,"number"] "212 555-1234"
["phone_numbers",1,"type"] "office"
["phone_numbers",1,"number"] "646 555-4567"
["children",0] "Catherine"
["children",1] "Thomas"
["children",2] "Trevor"
["spouse"] null