aJson: added return values to the used functions