Use load_json instead of manual handling.
Fix some stuff...