Initial version of results JSON API