diff --git a/resources/examples/Fixes/add_array b/resources/examples/Fixes/add_array new file mode 100644 index 0000000..7be9999 --- /dev/null +++ b/resources/examples/Fixes/add_array @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+an+empty+array/list%0Aadd_array%28%22emptyArray%5B%5D%22%29%0A%0A%23+Add+an+array/list+with+values%0Aadd_array%28%22array%5B%5D%22%2C%22value1%22%2C%22value2%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/add_field b/resources/examples/Fixes/add_field index 1012c09..de30b78 100644 --- a/resources/examples/Fixes/add_field +++ b/resources/examples/Fixes/add_field @@ -1 +1 @@ -https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+field%0Aadd_field%28%22another%22%2C+%22keyword%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+field%0Aadd_field%28%22another%22%2C+%22keyword%22%29%0A%23+Also+creates+nested+intermediate+structure%0Aadd_field%28%22additional.nested.keyword%22%2C%22field%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/add_hash b/resources/examples/Fixes/add_hash new file mode 100644 index 0000000..ac30054 --- /dev/null +++ b/resources/examples/Fixes/add_hash @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+hash+and+a+hash+with+certain+subfields%0Aadd_hash%28%22object1%22%29%0Aadd_hash%28%22object2%22%2C+%22subfieldName1%22%3A+%22value1%22+%2C+%22subfieldName2%22%3A+%22value2%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file