json support

Added json support. Need to add Attacks accordingly.