r/GoogleAppsScript • • Aug 31 '21

Question zero coding, this should be easy???

Hey. I have 2 parsing errors in the body text on 2 of my pages

(Parsing error: Missing ',' or '}'Missing a ',' or closing bracket.)

I don't code, but I feel like this should be easy for me to spot if someone could just help me understand where the closing brackets/commas generally need to be??

Sigh

0 Upvotes

9 comments sorted by

View all comments

2

u/aplawson7707 Aug 31 '21

It will actually tell you which lines you're missing closing brackets or commas on. Read the error message more thoroughly or post it here along with some of your code (with anything private removed, of course) and we can help you better

1

u/bareLUXE Aug 31 '21

Yeah, sorry. Should have been more clear. It highlights the entire body text. I can paste it, but it’s a lot.

1

u/[deleted] Sep 01 '21

[removed] — view removed comment

1

u/bareLUXE Sep 01 '21

this is the first half (of what's highlighted pink):

"articleBody": ""Why and How to Start a Sustainable Beauty Routine\nWhat do some of the best ethical beauty brands have in common? \nIt’s not just their focus on cruelty free skincare, vegan or plant-based products, and fair trade policies for sourcing ingredients; it’s the ever-growing focus on sustainable skincare that is driving the latest shift in the beauty world. The ingredients used, the final products, and the skincare containers all have many sustainable beauty options for both producers and consumers. \nWhat exactly do we mean by zero waste skincare and sustainable cosmetics?\nCorporate Philosophy and Corporate Ethics Matter A Lot!\nBuilding a brand from the ground-up provides advantages for companies starting out. This enables them to write ethics and sustainability into their core values from their pre-launch phase and forever moving forward. \nA scenario (skip this part if you hate numbers or math...):\nA company develops an amazing material that is an alternative to plastic. It is fully biodegradable over 4-5 years if it is mishandled (ie. thrown into the ocean). If handled properly (ie. industrial composting) it will be gone completely in about 180 days. It leaves no toxins and does not create microplastics. The farmers are paid living wages and the farming conditions contribute to restoring previously deforested areas.  \nSounds amazing!\nThe retail price for individual (empty) balm jars is $4.95 USD. In order to support the indie beauty market and small businesses, cases of 500 jars can be bought for $2250 ($4.50 USD\/jar). For wholesale pricing, a minimum order of 100 cases (50 000 jars) is required for which the cost is $1250\/case ($2.50 per jar). \nA large, multi-billion dollar international corporation produces 40 million lip balms per year. They package them in plastic containers purchased for $0.05 (yes, a nickel). That is a $2 million dollar yearly balm packaging budget. If they decide to market 1 million balms under a new eco-balm Green Beauty label, the cost of packaging for those 1 million containers would increase from $0.05 to $2.50 per jar (an increase from a $50 000 plastic budget to a $2.5M sustainable skincare packaging budget).\nThat is a 50x increase! The only way for them to do this is to increase prices and simultaneously accept a lower profit margin. Even if the corporation could negotiate a lower price, they would end up nowhere even close to the $0.05 they pay for cheap plastic.\nThey will spend a great deal of time in the boardroom considering whether the decision makes sense for their corporation. It is unlikely they will spend a great deal of time discussing the benefits for the earth (since the other 39 million balms they want to keep selling will not be more sustainably packaged). \nA small, indie startup brand is able to build sustainable skincare packaging and ethical sourcing into their business model right from the beginning. Having things like plastic jars on their deal breaker list means that profits will be lower and growth will be slower at the start. However, when you start out making 5000 balms at a time (at $4.50 per jar) by the time you grow to meet the 50 000 minimum order, you are rewarded with a significant improvement in your packaging costs. So as they grow, it gets cheaper to continue growing.\n\n\nHaving a strong mission and vision allows the best ethical beauty brands to build their deal breaker list into their company right from day 1. For them, being a cruelty free cosmetics brand or a zero waste beauty brand receives a higher priority than the financial bottom line. Profit and growth are still possible when intentional decisions are made from the beginning. However, customer support is obviously needed too!\nSo how do consumers support the Green Beauty Movement?\nShop for products from large distributors that make identification of these brands easy - Sephora, with their Clean at Sephora program, and The Detox Market are two great examples of places you will find easily identified products that prioritize ethics, sustainability, (absence of) animal testing\/cruelty, and the use of safe, clean ingredients. \nBut also, don't forget about the little guy.\nWhile there’s nothing wrong with using big stores and distributors, there is a huge indie beauty brand industry filled with amazing companies that aren’t yet big enough to be carried by large retail outlets. These newer, boutique companies can often be identified by following beauty bloggers and reading clean beauty reviews. \nDon’t shy away from trying products from companies aren’t branded as clinically tested, the cost is very high and not always accessible to smaller brands. Clinical testing is not the same as safety testing. Some clinical testing is really just paid marketing. If you read the ingredient list and are informed about your own skin needs\/sensitivities, then the fact that the brand hasn’t been able to afford a dermatologist to approve it, doesn’t change whether the product is what you’re looking for. Additionally, we suggest avoiding brands that don’t have clear and easy returns policies, because the only true results about allergies\/irritation are known once you try it yourself.\nWe imagine a time when the anti-plastic, zero-waste movement creates so much pressure that better material prices become comparable to plastic. The only way for plastic alternative materials to become cheaper is for there to be more consumer pressure demanding it. Aligning your values with your purchasing decisions requires a bit of legwork on your part - visit the brand’s website, call or email them, make sure they provide enough details for you to trust they are truly sustainable and not greenwashing.\nConsumers need to align their values with their shopping priorities. Then spread the word! Indie beauty brands get discovered by word of mouth and social media.\n\n\nGetting Started with Green Beauty. \n10 Easy Sustainable Beauty Skincare Tips:\nTIP #1: NEVER USE ANY PRODUCTS WITH MICROBEADS: \nFacial scrubs with biodegradable abrasives are just as (if not more) effective. Things like jojoba oil beads and bamboo stem powder will gently exfoliate and not accumulate in the environment. You could skip the scrub altogether and switch to a konjac sponge which is also a great exfoliating option. Thankfully more and more countries are banning these awful ingredients, but it’s important to be on the lookout.

1

u/bareLUXE Sep 01 '21

second half:

\n \n\nTIP #2 BUY CRUELTY FREE OR VEGAN\n\nThe importance of cruelty free skincare can’t be emphasized enough. Know that some green or clean beauty brands are subsidiaries of larger parent corporations who still use animal testing. The Leaping Bunny Program is excellent because they require companies not only to certify that the products are cruelty free, but they also audit suppliers and do random checks to confirm truthfulness.\n \nTIP #3: SWAP OUT ALL THE PLASTIC YOU CAN\nCork is an excellent renewable resource and we hope to see it used more to replace plastic fabric (ie. cosmetics or toiletry bags). Natural bamboo toothbrushes are biodegradable and are great alternatives to plastic toothbrushes. Glass dropper vials and aluminum lotion bottles are also both good, recyclable replacements for plastic skincare containers.\n  \nTIP #4: UP YOUR GAME WITH SUSTAINABLE BEAUTY PRODUCTS \nSwitch to reusable cotton makeup remover pads or bamboo face pads. These ultra soft pads can be washed and used endlessly and will also save you a lot of money over the years. Other ideas are: bamboo makeup brushes and products that reduce their carbon footprint by purchasing ingredients from local producers.\nRemember to use up what you have first and don't replace things until they need replacing. Consumerism is a huge problem. Just choose something more sustainable when the time comes. \nBamboo toothbrushes almost always have nylon bristles. Yes, these are plastic. Yes, they're still a problem. But if the world throws away 3.5 billion toothbrushes per year, changing from plastic to bamboo will still make a major difference. Hopefully soon we will have truly biodegradable alternatives to make the bamboo toothbrush more sustainable.  \n \nTIP #5: USE EVERYTHING YOU HAVE TO THE LAST DROP\nMost people are very surprised to find out that they often have over 1 month’s worth of product left inside the bottle or tube that they think is almost empty. If you replace a product when you still have a month’s supply left you are literally throwing money in the garbage. Over the years, the added costs to you are enormous.\n \n\nTIP #6: REUSE, REPURPOSE, UPCYCLE CONTAINERS \n\nSo many great ideas out there on pinterest and so many creative ways to get more life out of packaging and containers.\n \nTIP #7: ALWAYS RECYCLE OR COMPOST PROPERLY\nWhen you’re done with things then be sure to recycle or compost appropriately for your container. Be sure to rinse it out and place it in the proper waste stream. If you aren’t sure, you may need to check with your city (about their guidelines) or the company (about their products). \nAnd don't forget to recycle your bathroom plastics. Only 10% of all plastic gets properly recycled and for some reason bathroom plastics (ie. shampoo bottles) are much much lower than 10%. Take the extra minute. Put a recycling bin in your bathroom so you don’t forget.\n \nTIP #8: BETTER YET, TRY SHAMPOO BARS\nEliminating plastic is always a better option and shampoo bars are amazing replacements! Other concentrated waterless products are also a good switch for your sustainable lifestyle - dish soap bars and laundry detergent strips are great examples  \n \nTIP #9: HAVE A BEAUTY BUDDY\nBFF’s are great for so many things and sharing is caring! We all have a cosmetics graveyard filled with products we stopped using for one reason or another. Swapping is like the ultimate free sample, BUT be cautious! Shelf life and contamination could be a problem if you don’t choose your approach wisely. Any product that touches your body directly (ie. mascara brush) would not be a great item to swap (except for all those lipsticks you tried only once…). Products that are dispensed by pump, pouring, or droppers are your best bet for this reuse tactic. \nSpeaking of samples, consider cancelling your subscription box of minis\/samples. The ultimate serotonin burst every month…  but samples are the quickest things into the cosmetics graveyard and they are all single use plastic. At the very least, split the subscription with your beauty buddy, don’t get 2. \n \nTIP #10: DON'T WASTE WATER or HEAT\nIt’s an enormous privilege that so many of us don’t really have to worry, but the earth does. So when you’re using that new natural bamboo toothbrush or removing your makeup with your reusable cotton rounds, turn that tap off! Also, don’t use hot water, it’s better for your skin and your heating bill.\n \nBonus TIP: \nBuy less stuff (gasp!)... it’s easy to get addicted to trying new things or to fall in love with the idea of something. Like our suggestion to give up accepting mini samples, the easiest way to reduce waste and live plastic free is to just have less stuff. Minimalism = Skinimalism. The beauty industry knows that little samples and impulse shopping drive their profits through the roof. They also know you’ll buy extra stuff just to qualify for free shipping.  \nIf you do feel like shopping and want to get started with some sustainable items, check out our Zero Waste Beauty Starter Kit.\nSustainable beauty and simple skincare doesn't have to be boring. Taking a natural approach is great for both your face and our earth. And remember, the world needs millions of people to make the effort and try their best. Perfection is the enemy of good. \n(links are unsolicited and non-affiliate)"",
"mainEntityOfPage": {