fixes bug 1052007 - Switch to ujson for parsing middleware JSON

@AdrianGaudebert r?
cc @rhelmer