#356: load_logic.php, properly format JSON structure

Resolves #356.