work on fromJson