read inputs from json