Tweaked for plain json (no binary/utf8) usage.