Error: Invalid JSON: unexpected token

AI-generated summary

Erreur d’intégration d’un texte dans un fichier .json avec le message “Invalid JSON: unexpected token”. JSON est un format texte structuré; l’erreur “unexpected token” indique une syntaxe invalide (caractère, guillemet ou accolade manquants).

  • Un extrait de code a été fourni et est central à la compréhension: il contient un segment incomplet dans le champ “year” (“other”: “Every {{ count”), montrant une structure JSON non terminée. Cela peut empêcher le fichier d’être parsé correctement.

  • Un intervenant a demandé des précisions (thème utilisé, applications installées, ancienneté du problème), mais aucune enquête approfondie n’a été menée dans le fil. Mise à jour: le support de l’application a résolu le problème; aucune action supplémentaire n’a été requise et la discussion est close.

Bonjour,

Je souhaite intégrer le texte suivant dans mon fichier .json mais j’ai toujours le message cité en objet qui s’affiche. Pouvez-vous m’aider?

D’avance je vous remercie et vous souhaite une belle journée,

Crystel

{
  "wallee-subscription": {
"header": "Subscriptions",
  	"list": {
  		"return_to_account": "Return to Account Details",
  		"column": {
  			"subscription": "Subscription",
  			"date": "Date",
  			"status": "Status"
		}
  	},
  	"view": {
  		"header": "Subscription #{{ id }}",
  		"return_to_list": "Return to Subscription List",
  		"created_on": "Created on {{ createdOn }}",
  		"last_orders": "Last Orders",
  		"billing_information": "Billing Information",
  		"payment_information": "Payment Information",
  		"billing_address": "Billing Address",
  		"shipping_address": "Shipping Address",
  		"next_order": "Next Order:",
  		"frequency": {
  			"header": "Frequency:",
  			"minute": {
  				"one": "Every minute",
  				"other": "Every {{ count }} minutes"
  			},
  			"hour": {
  				"one": "Hourly",
  				"other": "Every {{ count }} hours"
  			},
  			"day": {
  				"one": "Daily",
  				"other": "Every {{ count }} days"
  			},
  			"week": {
  				"one": "Weekly",
  				"other": "Every {{ count }} weeks"
  			},
  			"week_weekday": {
  				"one": "Weekly on a {weekday}",
  				"other": "Every {{ count }} weeks on a {{ weekday }}"
  			},
  			"month": {
  				"one": "Monthly",
  				"other": "Every {{ count }} months"
  			},
  			"month_day": {
  				"one": "Monthly on day {dayOfMonth} of the month",
  				"other": "Every {{ count }} months on day {{ dayOfMonth }} of the month"
  			},
  			"year": {
  				"one": "Yearly",
  				"other": "Every {{ count }} years"
  			}
		},
		"address": {
			"first_name": "First Name",
			"last_name": "Last Name",
			"company": "Company",
			"address": "Address",
			"city": "City",
			"country": "Country",
			"province": "Province",
			"postal_code": "Postal/Zip Code",
			"phone": "Phone"
		},
  		"button": {
  			"suspend": "Suspend",
  			"reactivate": "Reactivate",
  			"terminate": "Terminate",
  			"edit": "Edit",
  			"cancel": "Cancel",
  			"update": "Update"
  		},
  		"column": {
  			"product": "Product",
  			"price": "Price",
  			"quantity": "Quantity",
  			"order": "Price",
  			"date": "Date",
  			"payment_status": "Payment Status",
  			"fulfillment_status": "Fulfillment Status",
  			"total": "Total"
  		},
  		"info": {
	  		"terminated": "The subscription was terminated on {{ terminatedOn }}.",
	  		"terminating": {
	  			"zero": "The termination of the subscription was requested.",
	  			"other": "The subscription will be terminated after {{ count }} more orders."
	  		},
	  		"suspended_reactivate": "The subscription was suspended and will be reactivated on {{ plannedEndDate }}.",
	  		"suspended_terminate": "The subscription was suspended and will be terminated on {{ plannedEndDate }}."
  		},
  		"terminate": {
  			"header": "You are about to terminate the subscription.",
  			"info": "This cannot be undone.",
  			"missing_cycles": "The subscription will run for {{ missingCyclesToTermination }} more orders after the termination is requested."
  		},
  		"suspend": {
  			"header": "You are about to suspend the subscription.",
  			"input_label": "Define until when the subscription should be suspended:",
  			"info": "As long as the subscription is suspended, no further orders will be created."
  		}
  	}
  }
}

Bonjour @CrystelWithLove !

Voilà une question qui en intéressera certainement plus d’un ! Je serai ravi de répondre à toutes vos questions concernant les paramètres de votre thème. Afin de mieux comprendre votre situation, j’aurais besoin de quelques informations :

  • Quel thème (le nom) utilisez-vous actuellement ?
  • Utilisez-vous des applications pour votre boutique, et en avez-vous téléchargé récemment ?
  • S’agit-il d’un phénomène que vous avez observé récemment, ou bien cela s’est-il déjà produit auparavant ?

Merci d’avance pour votre aide !

Bonjour,

Je vous remercie d’avoir répondu à ma demande d’aide.
La problème à été résolu par le help desk de l’application en question.

Merci quand même et bonne continuation,

Bonjour et merci pour votre retour, @CrystelWithLove !

Je suis ravi d’apprendre que notre équipe a pu vous assister efficacement. Passez également une excellente journée.