fixed possible null pointer; added JSON test SCD file
added JSON test C main file