Port _json.c to Java to speed up JSON encoding/decoding.