This is not a good idea. You are going to bloat your website / application size and it will run very slowly.
You are better off putting that object either into a database or at least server side in some form and making API calls to just the data you need, when you need it.
1
solved What is the best method to bring a gigantic JS object to client side? [closed]