#364: load_logic.php, 'print json_encode()' instead of error string

Resolves #364.