inventory prints json as output