|
Как лучше всего сериализовать в строку массивы, списки, объекты
|
|||
---|---|---|---|
#18+
Хороший вопрос на Community ... |
|||
:
Нравится:
Не нравится:
|
|||
02.06.2016, 11:26 |
|
Как лучше всего сериализовать в строку массивы, списки, объекты
|
|||
---|---|---|---|
#18+
ZitRoWhat is the best way to serialize object /list/array/ etc to string?Если не JSON, то только XML. Например: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54.
... |
|||
:
Нравится:
Не нравится:
|
|||
02.06.2016, 14:29 |
|
Как лучше всего сериализовать в строку массивы, списки, объекты
|
|||
---|---|---|---|
#18+
ZitRoThe problem with all of the methods in %ZEN.Auxiliary.jsonProvider is that it writes JSON string directly to the current device, not allowing to get the string itself. But nevertheless I did it by rewriting this method and creating a custom method , which returns a string instead of printing JSON to the device. dc Есть несколько решений без изобретения велосипедов и усложнения кода:
... |
|||
:
Нравится:
Не нравится:
|
|||
14.06.2016, 13:53 |
|
|
start [/forum/topic.php?fid=39&msg=39255705&tid=1556459]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
46ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
44ms |
get tp. blocked users: |
1ms |
others: | 271ms |
total: | 410ms |
0 / 0 |