Added support for object creation from JSON string.