Add JSON function

Added functions that returns event's JSON data by its id and returns
given number of events' JSON data by desc date