Skip to content

Commit

Permalink
Add additional integration test for #92
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Mar 2, 2022
1 parent cd7360a commit 434cbe2
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #92
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"test" : [ {
"key" : "value_1"
}, {
"key" : "value_2"
}, {
"key" : "value_3"
} ],
"test_2" : {
"key" : "value_1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"test": [{
"key": "value_1"
},{
"key": "value_2"
},{
"key": "value_3"
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copy_field("test[].$first", "test_2")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See issue #92
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"test" : [ {
"key" : "value_1"
}, {
"key" : "value_2"
}, {
"key" : "value_3"
} ],
"test_2" : {
"key" : "value_3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"test": [{
"key": "value_1"
},{
"key": "value_2"
},{
"key": "value_3"
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copy_field("test[].$last", "test_2")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;

0 comments on commit 434cbe2

Please sign in to comment.