<div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div>I modified the metaflac program to output in JSON format if the --output-json switch is used, and made a simple Go program to demonstrate use of the output.</div><div><br></div><div>I imported the MIT licensed json-c library into src/share/json-c and put headers in include/share/json-c.<br></div><div><br></div>For example, <div># metaflac --output-json --list myfile.flac<br clear="all"><div><br></div><div>example output: <a href="https://gist.github.com/waitman/847a8cae4a650a8898ee">https://gist.github.com/waitman/847a8cae4a650a8898ee</a><br></div><div><br></div><div>If the modified software is useful to anyone, the modifications are available on github, I did a 'clean' import of head / 1.3.1 then pushed up the changes, so maybe it's easier to see what was modified.</div><div><br></div><div><a href="https://github.com/waitman/flac">https://github.com/waitman/flac</a><br></div><div><br></div><div><a href="https://github.com/waitman/goflac">https://github.com/waitman/goflac</a><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Waitman Gobble<br>Los Altos California USA<br>510-830-7975<br></div>
</div></div>