Convertissez objets et tableaux JavaScript en chaînes JSON avec indentation personnalisable et échappement HTML.