From 634d5ea0b0a914f77d54d390600a0216adb1397e Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sat, 24 Jun 2017 17:07:47 -0400 Subject: [PATCH] parses json --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index f11c4f8..c108200 100644 --- a/index.html +++ b/index.html @@ -113,7 +113,12 @@ message: $('#message').val(), } }).then((data)=>{ - console.log(data); + console.log(JSON.parse(data)); + if(JSON.parse(data).status == 200){ + console.log('yay'); + } else { + console.log('boo'); + } }); }) });