blackducksoftware / ohcount

The Ohloh source code line counter
https://github.com/blackducksoftware/ohcount
GNU General Public License v2.0
261 stars 69 forks source link

Added JSON parser #15

Closed alex-w closed 11 years ago

alex-w commented 12 years ago

I'm add JSON parser like QML parser

amujumdar commented 11 years ago

Thanks Alex,

Would it be possible for you to add some test-cases? Also, do you have a use-case for this? For example, some project on Ohloh that isn't showing correct stats?

alex-w commented 11 years ago

Ohloh not counts any JSON files now. As example we (Stellarium) uses JSON for storing data and Ohloh not showing any stats for this data: http://www.ohloh.net/p/stellarium/commits/208986867

I can write some test-cases but can't test it because I don't have time for installing and test ohcount on my machine.

alex-w commented 11 years ago

I'm added test-cases but this test need check.

amujumdar commented 11 years ago

Alex, we discussed this within the team and concluded that JSON is more like a serialization format than a language to add to Ohcount. Do you agree? Since this patch addresses .json extension only, could .json be added to list extensions mapped to Javascript language?

alex-w commented 11 years ago

I agree, thanks!