Hi,
I have develop a html file and i would like to know if is possible to manipulate a Json string in batch. Doing this to output json to text.
Thanks
---------------------------
Here is my batches & more:
http://cyberlord.at/forum/?id=10589
Interpret json with batch
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Interpret json with batch
There's nothing natively because batch predates JSON, but you could use jq or PowerShell.
Re: Interpret json with batch
Thanks for the links, will do a visit soon...
This would be nice with some json apis that i have.
---------------------------
Here is my batches & more:
http://cyberlord.at/forum/?id=10589
This would be nice with some json apis that i have.
---------------------------
Here is my batches & more:
http://cyberlord.at/forum/?id=10589
Re: Interpret json with batch
You could also use a hyprid jscript/batch; well, it's mainly a jscript and batch is only needed to start that, but in case you need a batch anyway, then that might be helpfull for you:
viewtopic.php?f=3&t=9049#p59297
penpen
viewtopic.php?f=3&t=9049#p59297
penpen
Re: Interpret json with batch
There's also this beautiful example that aGerman posted last month:
In "JSON file in wrong format" post #4
It is also a Batch/JScript hybrid, and the JScript part creates an HTML object, to use its JSON decoding capabilities.
In "JSON file in wrong format" post #4
It is also a Batch/JScript hybrid, and the JScript part creates an HTML object, to use its JSON decoding capabilities.