add fun loadFromJson