Made JSON output script executable so it can be called from a shell directly.