added JSON

added JSON and return object in method.