loc icon indicating copy to clipboard operation
loc copied to clipboard

Added JSON output option

Open grahambrooks opened this issue 8 years ago • 1 comments

Reflects the cloc output format but does not output a "header" object.

I needed a faster lines of code program for some historical analysis and came across loc. Certainly much faster but I needed an easily parsable output format - JSON.

Hope the updates are useful.

grahambrooks avatar Jul 01 '17 01:07 grahambrooks

I want to experiment with serde a bit for my own learning, but I have to admit I forgot how simple just doing string interpolation could be, I may end up going with this instead.

Thanks a bunch for the PR, sorry for the huge delay in replying.

cgag avatar Sep 23 '17 18:09 cgag