Parse MRW and create JSON file

Previously, it was to parse MRW and create a YAML file.
Now, we need to add a method to parse MRW and create a JSON file.

Tested:
 create YAML file:
  ./gen_led_groups.pl -i witherspoon.xml -o led.yaml
 create JSON file:
  ./gen_led_groups.pl -i witherspoon.xml -o led.json

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I508d06d50163942a87a917895138c8d5b4f24b81
1 file changed