{"thread":{"id":"47085","subject":"Is it possible to convert a Json file to xml file with Git","startedAt":"2017-10-31T17:28:46Z","lastAt":"2017-11-01T10:26:09Z","messageCount":5,"participants":["Eyjolfur Eyjolfsson","Kevin Daudt","Randall S. Becker","Jason Pyeron"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"331488","messageId":"CAO-WtQhAPjoWnWyMPi5SkCSUM_y8A=hsbLk-MUfnCSBvWnBRNQ@mail.gmail.com","threadId":"47085","inReplyTo":null,"subject":"Is it possible to convert a Json file to xml file with Git","fromName":"Eyjolfur Eyjolfsson","fromEmail":"eyjolfureyjolfsson@tprg.com","sentAt":"2017-10-31T17:28:40Z","receivedAt":"2017-10-31T17:28:46Z","isPatch":false,"sender":{"key":"eyjolfureyjolfsson@tprg.com","avatar":null},"body":"Hi\n\nI have a question.\nIs it possible to convert a Json file to XML with Git\n\nBest regards\n\nEyjolfur Eyjolfsson\n\n(e) eyjolfureyjolfsson@tprg.com\n(w) tpretailgroup.com\n\n-- \nThis email and any files transmitted with it are confidential and intended \nfor the sole use of the individual or entity to whom they are addressed. \n Any unauthorised dissemination or copying of this email or its attachments \nor disclosure of any information contained in them is strictly prohibited. \n If you have received the email in error, please notify the sender by email \nimmediately and delete it from your system.  The content of the email does \nnot necessarily represent Theo Paphitis Retail Group and associated \ncompanies and any views or opinions presented are solely those of the \nauthor.  Whilst we check communications we send for virus infection, you \nshould check this email and any attachments to it for viruses as we accept \nno responsibility for any loss or damage caused by any virus transmitted by \nthis email.  Email transmission cannot be guaranteed secure or error-free.\n\nTheo Paphitis Retail Group is the collective name for Ryman Group Limited, \nregistered in England and Wales, Company Number 02714395, VAT Number \n672523729,  Registered Office: Ryman House, Savoy Road, Crewe, Cheshire, \nCW1 6NA; Ryman Limited, registered in England and Wales, Company Number \n3007166, VAT Number 672523729,  Registered Office: Ryman House, Savoy Road, \nCrewe, Cheshire, CW1 6NA;  Robert Dyas Holdings Limited, registered in \nEngland and Wales, Company Number 4041884; VAT number 742720153, Registered \nOffice:  1 St George’s Road, Wimbledon, London, SW19 4DR;  Boux Avenue \nLimited, registered in England and Wales, Company Number 7191520, VAT \nNumber 125504638,  Registered Office: 1 St George’s Road, Wimbledon, \nLondon, SW19 4DR;  Boux Avenue International Limited, registered in England \nand Wales, Company Number 8047333, VAT Number 125504638, Registered office: \n1 St George’s Road, Wimbledon, London, SW19 4DR; and London Graphic Centre \nLimited, registered in England and Wales, Company Number 6062021,  VAT \nNumber 251820524, Registered Office:  Ryman House, Savoy Road, Crewe, \nCheshire, CW1 6NA.\n"},{"id":"331518","messageId":"20171031212251.GB7777@alpha.vpn.ikke.info","threadId":"47085","inReplyTo":"CAO-WtQhAPjoWnWyMPi5SkCSUM_y8A=hsbLk-MUfnCSBvWnBRNQ@mail.gmail.com","subject":"Re: Is it possible to convert a Json file to xml file with Git","fromName":"Kevin Daudt","fromEmail":"me@ikke.info","sentAt":"2017-10-31T21:22:51Z","receivedAt":"2017-10-31T21:22:57Z","isPatch":false,"sender":{"key":"me@ikke.info","avatar":"https://avatars.githubusercontent.com/u/135698?v=4"},"body":"On Tue, Oct 31, 2017 at 05:28:40PM +0000, Eyjolfur Eyjolfsson wrote:\n> Hi\n> \n> I have a question.\n> Is it possible to convert a Json file to XML with Git\n> \n> Best regards\n> \n> Eyjolfur Eyjolfsson\n> \n> (e) eyjolfureyjolfsson@tprg.com\n> (w) tpretailgroup.com\n> \n\nHello Eyjolfur,\n\ngit is a version control system, which is mostly content agnostic. It\nknows nothing about json or xml, let alone how to convert them.\n\nYou might want to use some kind of programming language to do the\nconversion.\n\nCould you perhaps explain more why you are asking this question?\n\nKevin.\n"},{"id":"331524","messageId":"001801d35292$9871bd10$c9553730$@nexbridge.com","threadId":"47085","inReplyTo":"20171031212251.GB7777@alpha.vpn.ikke.info","subject":"RE: Is it possible to convert a Json file to xml file with Git","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2017-10-31T21:52:48Z","receivedAt":"2017-10-31T21:52:57Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"> On October 31, 2017 5:23 PM, Kevin Daudt wrote:\n> > On Tue, Oct 31, 2017 at 05:28:40PM +0000, Eyjolfur Eyjolfsson wrote:\n> > I have a question.\n> > Is it possible to convert a Json file to XML with Git\n> \n> git is a version control system, which is mostly content agnostic. It\nknows\n> nothing about json or xml, let alone how to convert them.\n> \n> You might want to use some kind of programming language to do the\n> conversion.\n\nSpeculating... one possible reason to do this is during a protocol\nconversion effort, where definitions are moving from XML to JSON form. In\nlegacy VCS systems, keeping interface definitions in one file and converting\nthe content may be important. However, in git, with its concept of atomicity\n(multiple files are committed in a single version across the whole\nrepository), dropping one file (e.g., XML) and adding another (e.g., JSON),\ncan be done in one commit, and never lost or confused as to what is\nintended. This makes git ideal for modernization and evolutionary projects.\n\nIf, however, there is an application or systemic requirement to change the\ncontent of a file from XML to JSON without changing the name - I've seen it\nhappen - you may want to consider building a smudge filter that understands\nthe difference and maps between the two, to allow git diff operations\nbetween old and new formats. I would not recommend using this approach\nexcept as a last possible resort. Make a new file as Kevin intimated.\n\nJust Musing on the Topic,\nRandall\n\n-- Brief whoami: NonStop&UNIX developer since approximately\nUNIX(421664400)/NonStop(211288444200000000)\n-- In my real life, I talk too much.\n\n\n\n"},{"id":"331553","messageId":"CAO-WtQheY-cpBwEp1TGbRAT4t7Ao7qDdGdinMBb2eB6AOeuKBA@mail.gmail.com","threadId":"47085","inReplyTo":"001801d35292$9871bd10$c9553730$@nexbridge.com","subject":"Re: Is it possible to convert a Json file to xml file with Git","fromName":"Eyjolfur Eyjolfsson","fromEmail":"eyjolfureyjolfsson@tprg.com","sentAt":"2017-11-01T10:09:34Z","receivedAt":"2017-11-01T10:09:41Z","isPatch":false,"sender":{"key":"eyjolfureyjolfsson@tprg.com","avatar":null},"body":"Hi\n\nThank you for your response and help. I am new to Git.\nThe reason for my question is that I am using Git or Bash.exe  (cURl)\nto call a REST web service (open for test) and retrieving  Json\nfrom the web service and storing it into file.\nThis works fine from the Git Bash command line . My Git Command:\n$ curl https://jsonplaceholder.typicode.com/posts -o c:\\temper.txt\n\nI will look into the smudge filter.\n\nOne more question is there a possibility to call Git Bash with a\nparameter like example\nC:\\Git\\Git\\git-bash.exe  curl\nhttps://jsonplaceholder.typicode.com/posts -o c:\\temper.txt\n\nThe reason I am asking this is that I am using NAV 2009 Classic Client\nand want to lunch the Git Bash with\n the command  $ curl https://jsonplaceholder.typicode.com/posts -o c:\\temper.txt\n\n\nBest regards\n\n(e) eyjolfureyjolfsson@tprg.com\n(w) tpretailgroup.com\n\n\nOn 31 October 2017 at 21:52, Randall S. Becker <rsbecker@nexbridge.com> wrote:\n>> On October 31, 2017 5:23 PM, Kevin Daudt wrote:\n>> > On Tue, Oct 31, 2017 at 05:28:40PM +0000, Eyjolfur Eyjolfsson wrote:\n>> > I have a question.\n>> > Is it possible to convert a Json file to XML with Git\n>>\n>> git is a version control system, which is mostly content agnostic. It\n> knows\n>> nothing about json or xml, let alone how to convert them.\n>>\n>> You might want to use some kind of programming language to do the\n>> conversion.\n>\n> Speculating... one possible reason to do this is during a protocol\n> conversion effort, where definitions are moving from XML to JSON form. In\n> legacy VCS systems, keeping interface definitions in one file and converting\n> the content may be important. However, in git, with its concept of atomicity\n> (multiple files are committed in a single version across the whole\n> repository), dropping one file (e.g., XML) and adding another (e.g., JSON),\n> can be done in one commit, and never lost or confused as to what is\n> intended. This makes git ideal for modernization and evolutionary projects.\n>\n> If, however, there is an application or systemic requirement to change the\n> content of a file from XML to JSON without changing the name - I've seen it\n> happen - you may want to consider building a smudge filter that understands\n> the difference and maps between the two, to allow git diff operations\n> between old and new formats. I would not recommend using this approach\n> except as a last possible resort. Make a new file as Kevin intimated.\n>\n> Just Musing on the Topic,\n> Randall\n>\n> -- Brief whoami: NonStop&UNIX developer since approximately\n> UNIX(421664400)/NonStop(211288444200000000)\n> -- In my real life, I talk too much.\n>\n>\n>\n\n\n\n-- \nEyjolfur Eyjolfsson\n\n(e) eyjolfureyjolfsson@tprg.com\n(w) tpretailgroup.com\n\n-- \nThis email and any files transmitted with it are confidential and intended \nfor the sole use of the individual or entity to whom they are addressed. \n Any unauthorised dissemination or copying of this email or its attachments \nor disclosure of any information contained in them is strictly prohibited. \n If you have received the email in error, please notify the sender by email \nimmediately and delete it from your system.  The content of the email does \nnot necessarily represent Theo Paphitis Retail Group and associated \ncompanies and any views or opinions presented are solely those of the \nauthor.  Whilst we check communications we send for virus infection, you \nshould check this email and any attachments to it for viruses as we accept \nno responsibility for any loss or damage caused by any virus transmitted by \nthis email.  Email transmission cannot be guaranteed secure or error-free.\n\nTheo Paphitis Retail Group is the collective name for Ryman Group Limited, \nregistered in England and Wales, Company Number 02714395, VAT Number \n672523729,  Registered Office: Ryman House, Savoy Road, Crewe, Cheshire, \nCW1 6NA; Ryman Limited, registered in England and Wales, Company Number \n3007166, VAT Number 672523729,  Registered Office: Ryman House, Savoy Road, \nCrewe, Cheshire, CW1 6NA;  Robert Dyas Holdings Limited, registered in \nEngland and Wales, Company Number 4041884; VAT number 742720153, Registered \nOffice:  1 St George’s Road, Wimbledon, London, SW19 4DR;  Boux Avenue \nLimited, registered in England and Wales, Company Number 7191520, VAT \nNumber 125504638,  Registered Office: 1 St George’s Road, Wimbledon, \nLondon, SW19 4DR;  Boux Avenue International Limited, registered in England \nand Wales, Company Number 8047333, VAT Number 125504638, Registered office: \n1 St George’s Road, Wimbledon, London, SW19 4DR; and London Graphic Centre \nLimited, registered in England and Wales, Company Number 6062021,  VAT \nNumber 251820524, Registered Office:  Ryman House, Savoy Road, Crewe, \nCheshire, CW1 6NA.\n"},{"id":"331555","messageId":"FEF91BF4585C421CB385BCF3A65EB05B@blackfat","threadId":"47085","inReplyTo":"CAO-WtQheY-cpBwEp1TGbRAT4t7Ao7qDdGdinMBb2eB6AOeuKBA@mail.gmail.com","subject":"RE: Is it possible to convert a Json file to xml file with Git","fromName":"Jason Pyeron","fromEmail":"jpyeron@pdinc.us","sentAt":"2017-11-01T10:25:51Z","receivedAt":"2017-11-01T10:26:09Z","isPatch":false,"sender":{"key":"jpyeron@pdinc.us","avatar":"https://gravatar.com/avatar/c2e53452caa53d940768a1ffc9cf76196d851b9b534b7a39cd39852a70a0508f?d=mp&s=160"},"body":"> -----Original Message-----\n> From: Eyjolfur Eyjolfsson\n> Sent: Wednesday, November 1, 2017 6:10 AM\n> To: Randall S. Becker\n> Cc: Kevin Daudt; git@vger.kernel.org\n> Subject: Re: Is it possible to convert a Json file to xml \n> file with Git\n> \n> Hi\n> \n> Thank you for your response and help. I am new to Git.\n\nNot a problem, but what you describe is not using git but rather a shell called bash. Bash is like cmd.exe or powershell.exe, it is not GIT. See http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html \n\n> The reason for my question is that I am using Git or Bash.exe  (cURl)\n> to call a REST web service (open for test) and retrieving  Json\n> from the web service and storing it into file.\n> This works fine from the Git Bash command line . My Git Command:\n\nNot a git command, that is a curl command. See https://curl.haxx.se/\n\n> $ curl https://jsonplaceholder.typicode.com/posts -o c:\\temper.txt\n> \n> I will look into the smudge filter.\n> \n\nYou could search for \"convert json to xml in LANGUAGE\" where language is one you are familiar with. E.g. http://google.com/search?q=convert+json+to+xml+Java\n\n> One more question is there a possibility to call Git Bash with a\n> parameter like example\n> C:\\Git\\Git\\git-bash.exe  curl\n> https://jsonplaceholder.typicode.com/posts -o c:\\temper.txt\n> \n> The reason I am asking this is that I am using NAV 2009 Classic Client\n> and want to lunch the Git Bash with\n>  the command  $ curl \n> https://jsonplaceholder.typicode.com/posts -o c:\\temper.txt\n\nAgain you are using Bash that came with a windows build of Git, just like when the Visual Studio shell gets installed. A place like https://stackoverflow.com/ may be a better resource than this mailing list about GIT.\n\nv/r,\n\nJason Pyeron\n\nPS: Please do not top post. See http://www.idallen.com/topposting.html\n\n> \n> \n> Best regards\n> \n> (e) eyjolfureyjolfsson@tprg.com\n> (w) tpretailgroup.com\n> \n> \n> On 31 October 2017 at 21:52, Randall S. Becker \n> <rsbecker@nexbridge.com> wrote:\n> >> On October 31, 2017 5:23 PM, Kevin Daudt wrote:\n> >> > On Tue, Oct 31, 2017 at 05:28:40PM +0000, Eyjolfur \n> Eyjolfsson wrote:\n> >> > I have a question.\n> >> > Is it possible to convert a Json file to XML with Git\n> >>\n> >> git is a version control system, which is mostly content \n> agnostic. It\n> > knows\n> >> nothing about json or xml, let alone how to convert them.\n> >>\n> >> You might want to use some kind of programming language to do the\n> >> conversion.\n<snip/>\n\n\n--\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n-                                                               -\n- Jason Pyeron                      PD Inc. http://www.pdinc.us -\n- Principal Consultant              10 West 24th Street #100    -\n- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -\n-                                                               -\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- \n\n"}]}