Initial version for parsing json output