Move jsonToArray & layout array to Lib_Counter