MIT + BSD
The NSJSONSerialization class was not introduced until iOS 5, but the iPhone 3G maxed out at iOS version 4.2.1, so you'll need to build this library and link it into your project.
Though based on the PHP vtwsclib, this library does not currently implement all of its methods. It does however provide an improved doCreate method that allows you to upload files to the Documents module.