Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Add simple move_field with object test #160
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Feb 28, 2022
1 parent 521a0e2 commit 0c699a1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"character" : {
"name" : "Jake",
"type" : "dog"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animal": {
"name": "Jake",
"type": "dog"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
move_field("animal", "character")
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 0c699a1

Please sign in to comment.