Is possible to create (from the example below), lets say, 2 instances of Animal and 3 instances of Flower based on data from a single json file?

Example code:

```
class Nature
{
    // do something with a specific json file
    class Animal
    {
        string id;
        bool isMammal;
    }

    class Flower
    {
        string id;
        int numberOfPetals;
    }
}

```

Expected result:

* An x amount of instances of Animal
* An y amount of instances of Flower

**PS**: 

x and y depends on the data obtained from the json file.

The workaround I thought was to, instead of creating an json file, create a .txt file, which contains Json data fragments. Then, save the contents of the .txt file into a variable. And finally, from that variable select each json data fragments to work with them individually, as if each one were an individual json file. 

But, would it have a simpler way of doing this?