Added more code in an attempt to parse post from JSON