Commit 4507c21c authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Correctly display falsy json data.

parent 62402d49
......@@ -64,10 +64,11 @@ class InputController extends Controller
public function show(Input $input) {
$json = json_decode($input->data);
if ($json)
return response()->json($json);
if ($json === null)
return $input->data;
return response()->json($json);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment