git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Is it possible to convert a Json file to xml file with Git

From
Jason Pyeron <jpyeron@pdinc.us>
Date
Nov 1, 2017, 10:25 UTC
Message-ID
<FEF91BF4585C421CB385BCF3A65EB05B@blackfat>
In-Reply-To
<CAO-WtQheY-cpBwEp1TGbRAT4t7Ao7qDdGdinMBb2eB6AOeuKBA@mail.gmail.com>
Show 11 quoted lines
> -----Original Message-----
> From: Eyjolfur Eyjolfsson
> Sent: Wednesday, November 1, 2017 6:10 AM
> To: Randall S. Becker
> Cc: Kevin Daudt; git@vger.kernel.org
> Subject: Re: Is it possible to convert a Json file to xml 
> file with Git
> 
> Hi
> 
> Thank you for your response and help. I am new to Git.
Not 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 
> The reason for my question is that I am using Git or Bash.exe  (cURl)
> to call a REST web service (open for test) and retrieving  Json
> from the web service and storing it into file.
> This works fine from the Git Bash command line . My Git Command:
Not a git command, that is a curl command. See https://curl.haxx.se/
> $ curl https://jsonplaceholder.typicode.com/posts -o c:\temper.txt
> 
> I will look into the smudge filter.
> 
You 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
Show 9 quoted lines
> One more question is there a possibility to call Git Bash with a
> parameter like example
> C:\Git\Git\git-bash.exe  curl
> https://jsonplaceholder.typicode.com/posts -o c:\temper.txt
> 
> The reason I am asking this is that I am using NAV 2009 Classic Client
> and want to lunch the Git Bash with
>  the command  $ curl 
> https://jsonplaceholder.typicode.com/posts -o c:\temper.txt
Again 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.
v/r,
Jason Pyeron
PS: Please do not top post. See http://www.idallen.com/topposting.html
Show 23 quoted lines
> 
> 
> Best regards
> 
> (e) eyjolfureyjolfsson@tprg.com
> (w) tpretailgroup.com
> 
> 
> On 31 October 2017 at 21:52, Randall S. Becker 
> <rsbecker@nexbridge.com> wrote:
> >> On October 31, 2017 5:23 PM, Kevin Daudt wrote:
> >> > On Tue, Oct 31, 2017 at 05:28:40PM +0000, Eyjolfur 
> Eyjolfsson wrote:
> >> > I have a question.
> >> > Is it possible to convert a Json file to XML with Git
> >>
> >> git is a version control system, which is mostly content 
> agnostic. It
> > knows
> >> nothing about json or xml, let alone how to convert them.
> >>
> >> You might want to use some kind of programming language to do the
> >> conversion.
<snip/>
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
Previous: Eyjolfur Eyjolfsson
Message 5 of 5 in “Is it possible to convert a Json file to xml file with Git”
  1. Eyjolfur EyjolfssonOct 31, 2017
  2. Kevin DaudtOct 31, 2017
  3. Randall S. BeckerOct 31, 2017
  4. Eyjolfur EyjolfssonNov 1, 2017
  5. Jason PyeronNov 1, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.