Added a method to retrieve a foundation object instance from a JSON string.