Algorithm to return values ​​from json navbar Terra