Update posts controller w/ JSON code.