2024-01-01 12:46:47 +00:00
|
|
|
data = json:parse(fs:read('examples/assets/jq_data.json'))
|
2023-10-24 00:45:47 +00:00
|
|
|
|
2024-01-05 01:54:22 +00:00
|
|
|
MyData = struct {
|
|
|
|
message <str>
|
|
|
|
name <str>
|
|
|
|
}
|
|
|
|
|
|
|
|
data_list = []
|
2023-11-30 14:48:56 +00:00
|
|
|
|
2023-11-16 07:11:47 +00:00
|
|
|
for commit_data in data {
|
2024-01-05 01:54:22 +00:00
|
|
|
new_data += new MyData {
|
2023-12-31 16:46:56 +00:00
|
|
|
message = commit_data:commit:message
|
|
|
|
name = commit_data:commit:committer:name
|
2023-11-28 16:01:38 +00:00
|
|
|
}
|
2023-10-24 00:45:47 +00:00
|
|
|
}
|
2023-11-16 07:11:47 +00:00
|
|
|
|
|
|
|
new_data
|