basic example showing how to convert objective-c objects to JSON