From: "Jason Pyeron" <jpyeron@pdinc.us>
To: "'Eyjolfur Eyjolfsson'" <eyjolfureyjolfsson@tprg.com>,
"'Randall S. Becker'" <rsbecker@nexbridge.com>
Cc: "'Kevin Daudt'" <me@ikke.info>, <git@vger.kernel.org>
Subject: RE: Is it possible to convert a Json file to xml file with Git
Date: Wed, 1 Nov 2017 06:25:51 -0400 [thread overview]
Message-ID: <FEF91BF4585C421CB385BCF3A65EB05B@blackfat> (raw)
In-Reply-To: <CAO-WtQheY-cpBwEp1TGbRAT4t7Ao7qDdGdinMBb2eB6AOeuKBA@mail.gmail.com>
> -----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
> 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
>
>
> 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 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
prev parent reply other threads:[~2017-11-01 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 17:28 Is it possible to convert a Json file to xml file with Git Eyjolfur Eyjolfsson
2017-10-31 21:22 ` Kevin Daudt
2017-10-31 21:52 ` Randall S. Becker
2017-11-01 10:09 ` Eyjolfur Eyjolfsson
2017-11-01 10:25 ` Jason Pyeron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FEF91BF4585C421CB385BCF3A65EB05B@blackfat \
--to=jpyeron@pdinc.us \
--cc=eyjolfureyjolfsson@tprg.com \
--cc=git@vger.kernel.org \
--cc=me@ikke.info \
--cc=rsbecker@nexbridge.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).