Initial draft of JSON webservice