updated user_agent method to call error instead of JSON.parse
updated user_agent method to call error instead of JSON.parse

EpicCoders/epiclogger,EpicCoders/epiclogger,EpicCoders/epiclogger,EpicCoders/epiclogger