Learn Courses My Dashboard

What is the proper approach to having multiple JSON trees?

I am working with the data.json file which holds the “DeliveryOffer” json tree. I will have other pages like “Pickup” and "Dropoff with their respective json trees. What is the proper approach to having multiple JSON trees? Can data.json hold them all? If so could you show me an example of how to separate them without getting an error in the model?

Hi @coder3000 can you share the data.json file here?

Are you fetching these from an API that has different endpoints?

Or using by multiple local JSON files?

I have answered my own question. Thanks for answering back.