Fixed JSON Bug for some plans.

Added license

Fixed Json Bug for some plans