Simple JSON serialisation for any custom NSObject based on its declared properties.