Je sais que jQuery.parseJSON
convertira ma chaîne json en objet json. Ce qui fait le vice versa dans jquery (ie) objet JSON chaîne JSON ... Toute suggestionComment obtenir json string à partir de json object dans jquery?
2
A
Répondre
2
Vérifiez ce site: http://www.json.org/js.html
Inclure leur script et ils ont une méthode stringify qui fait ce que vous cherchez pour.
1
Si vous êtes à la recherche d'une solution jQuery, obtenir ce plugin: http://code.google.com/p/jquery-json/
Questions connexes
- 1. JSON Object to String
- 2. jquery copy json object
- 3. Parse JSON string
- 4. Obtenir JSON à partir d'un service Web .NET avec JQuery
- 5. [object Object]undefined on input form (jquery+json+php)
- 6. comment obtenir réponse JSON dans php à partir de Facebook
- 7. jquery ajax obtenir json array?
- 8. obtenir tableau JSON à travers javascript jquery
- 9. Comment obtenir une valeur à partir d'un hachage JSON
- 10. jquery json à corder?
- 11. Obtenir des données JSON dans jQuery
- 12. comment identifier un objet json ou un tableau json à partir d'un texte d'analyse json?
- 13. Déssérialisation JSON string avec JSON.NET
- 14. comment puis-je remplacer json string?
- 15. comment obtenir des valeurs distinctes de json dans jquery
- 16. Comment obtenir XML à partir d'Ajax jQuery au lieu de JSON
- 17. jquery, json et xml
- 18. Obtenir des informations de JSON
- 19. Parse JSON dans jquery
- 20. Object mapping dans l'objectif-c (iphone) de JSON
- 21. Parse JSON dans jquery
- 22. lecture json de jquery
- 23. Impossible de décoder JSON stripslashed String?
- 24. .NET Large Object Heap et l'interaction JSON
- 25. obtenir un tableau de villes à partir d'une réponse json
- 26. accéder aux données json à partir de jquery
- 27. Impossible de recevoir JSON à partir de l'appel AJAX JQuery
- 28. Comment détecter l'objet JSON/JSON Array sur XCode à l'aide de JSON-Framework
- 29. jQuery Ajax Accès à json
- 30. Impossible d'interroger JSON à l'aide de jQuery
une fonction utile dans jquery? –
Vous auriez besoin d'utiliser un plugin pour l'obtenir. – Fermin