Encoding JSON is very easy. If that's all you are doing (e.g. only sending data to the client through say a web API), and you don't have a native library: build one.<p>Edit: also, I am a big fan of providing both. It can be done simply and cleanly, so why not.