title: Serializing a custom object into NSDictionary or NSArray to use NSJSONSerialization
body: <p>I've been looking for a way to serialize custom objects with <code>NSJSONSerialization</code> avoiding the use of third-party libraries, and I couldn't find any example. Is there any way of "automatically" create an <code>NSDictionary</code> and <code>NSArray</code> from an object, without having to create it typing in code all the object's member names yourself one by one and setting manually the values? I found a related <a href="https://stackoverflow.com/questions/4235485/saving-an-nsdictionary-of-nsarrays-of-custom-objects">post</a>, but it is pretty old, things may have now changed. </p>
  
  <p>Thanks</p>