fixes bug 1051984 - Use ujson to serialize JSON

@rhelmer r?