added POST functionality and parsed strings into JSON objects