added JSON format support, added MIT LICENSE