JSON transfer to models