Added some JSON-related methods that aren't tested or used yet.