I was thinking about creating an open source product using C# ASP.Net that allows people using a web browser or mobile device (with a web browser) to connect to the iPROsoft/LEVESYS software package. After discussing this with a work colleague, I found the project would infringe on the intellectual property rights of iPROsoft/LEVESYS, so unfortunately I will have to abandon the idea. The search for a C# ASP.Net project continues.
As developers we often need to take minified JSON and XML and pretty print it so it is human readable. A multitude of websites provide a free service where you can enter minified JSON or XML and it will format it the data so it is human readable. The problem is this can lead to leaking data causing security incidents. The solution is to write a couple of bash scripts to pretty print. A big thanks to Campovski 's answer on stackoverflow for the JSON and Ben Noland 's answer on stackoverflow and Anton I. Sipos ' comment for the XML I took these answers a little further and created a bash script that accepts arguments so you can pretty print A file The result returned form an API A string Data piped in Both scripts have the same usage Format a file with the -f flag JSON ./pretty_json.sh -f <name_of_file> XML ./pretty_xml.sh -f <name_of_file> Format the return value of an API with the -u flag JSON ./pretty_json.sh -u www.api.com XML ./pretty_xml.sh -u ...
Comments
Post a Comment