Start of JSON handeling for loading