added minor fixes to BE. one should not use json.parse function normally. BE should return JSON by default