I am trying to convert a text string to json, and I am strugling. i’ve tried all plugin, backend workflows, but for the life of me, I can’t make it work.
This is the text I am trying to convert:
{“supplement_1”:{“supplement”:“Vitamin B3 (Niacinamide)”,“daily_intake”:100,“unit_of_measure”:“mg”,“reason_to_take”:“Supports energy metabolism and skin health”,“time_of_day”:“morning”,“price”:0.0135,“price_unit”:“per mg”,“ingredient_cost”:1.35},“supplement_2”:{“supplement”:“Vitamin D3 (Cholecalciferol)”,“daily_intake”:20,“unit_of_measure”:“mg”,“reason_to_take”:“Supports bone health and immune function”,“time_of_day”:“morning”,“price”:0.0206,“price_unit”:“per mg”,“ingredient_cost”:0.412},“supplement_3”:{“supplement”:“L-Theanine”,“daily_intake”:200,“unit_of_measure”:“mg”,“reason_to_take”:“Promotes relaxation and stress reduction”,“time_of_day”:“morning”,“price”:0.0002,“price_unit”:“per mg”,“ingredient_cost”:0.04},“supplement_4”:{“supplement”:“Magnesium Threonate”,“daily_intake”:1500,“unit_of_measure”:“mg”,“reason_to_take”:“Supports cognitive function and sleep quality”,“time_of_day”:“night”,“price”:0.0004,“price_unit”:“per mg”,“ingredient_cost”:0.6},“supplement_5”:{“supplement”:“Rhodiola Rosea Root Extract”,“daily_intake”:500,“unit_of_measure”:“mg”,“reason_to_take”:“Enhances mood and reduces fatigue”,“time_of_day”:“morning”,“price”:0.02,“price_unit”:“per mg”,“ingredient_cost”:10},“supplement_6”:{“supplement”:“Omega-3 Fish Oil”,“daily_intake”:1000,“unit_of_measure”:“mg”,“reason_to_take”:“Supports heart health and brain function”,“time_of_day”:“morning”,“price”:0.03,“price_unit”:“per mg”,“ingredient_cost”:30},“supplement_7”:{“supplement”:“Ashwagandha Root Extract”,“daily_intake”:600,“unit_of_measure”:“mg”,“reason_to_take”:“Helps reduce stress and improve sleep”,“time_of_day”:“night”,“price”:0.0005,“price_unit”:“per mg”,“ingredient_cost”:0.3},“supplement_8”:{“supplement”:“Vitamin B12 (Cyanocobalamin)”,“daily_intake”:2.4,“unit_of_measure”:“mg”,“reason_to_take”:“Supports energy levels and nervous system health”,“time_of_day”:“morning”,“price”:0.05,“price_unit”:“per mg”,“ingredient_cost”:0.12},“supplement_9”:{“supplement”:“Coenzyme Q10 (Ubiquinone)”,“daily_intake”:100,“unit_of_measure”:“mg”,“reason_to_take”:“Supports energy production and heart health”,“time_of_day”:“morning”,“price”:0.0001,“price_unit”:“per mg”,“ingredient_cost”:0.01},“supplement_10”:{“supplement”:“Chamomile Flower Extract”,“daily_intake”:500,“unit_of_measure”:“mg”,“reason_to_take”:“Promotes relaxation and aids sleep”,“time_of_day”:“night”,“price”:0.03,“price_unit”:“per mg”,“ingredient_cost”:15},“supplement_11”:{“supplement”:“Valerian Root Extract”,“daily_intake”:300,“unit_of_measure”:“mg”,“reason_to_take”:“Improves sleep quality and reduces anxiety”,“time_of_day”:“night”,“price”:0.87,“price_unit”:“per mg”,“ingredient_cost”:261},“supplement_12”:{“supplement”:“Melatonin”,“daily_intake”:5,“unit_of_measure”:“mg”,“reason_to_take”:“Regulates sleep-wake cycle”,“time_of_day”:“night”,“price”:0.02,“price_unit”:“per mg”,“ingredient_cost”:0.1}}
If i add this text in an API for a backend:
If I copy and paste the text as a raw response, even without changing any formating, it give me the results I want to see…
Anyone can guide me? I’ve been stuck in this doom loop for 7 days!