Load JSON into custom JavaScript types