Added functionality to JSON

Added more examples in JSON js file to display usage. Added a couple
more attributes like error count and line count.