Create json interface for retrieving data