18 lines
274 B
Plaintext
18 lines
274 B
Plaintext
data = json:parse(fs:read('examples/assets/jq_data.json'))
|
|
|
|
MyData = struct {
|
|
message <str>
|
|
name <str>
|
|
}
|
|
|
|
data_list = []
|
|
|
|
for commit_data in data {
|
|
new_data += new MyData {
|
|
message = commit_data:commit:message
|
|
name = commit_data:commit:committer:name
|
|
}
|
|
}
|
|
|
|
new_data
|