JsonToken.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #region License
  2. // Copyright 2006 James Newton-King
  3. // http://www.newtonsoft.com
  4. //
  5. // This work is licensed under the Creative Commons Attribution 2.5 License
  6. // http://creativecommons.org/licenses/by/2.5/
  7. //
  8. // You are free:
  9. // * to copy, distribute, display, and perform the work
  10. // * to make derivative works
  11. // * to make commercial use of the work
  12. //
  13. // Under the following conditions:
  14. // * For any reuse or distribution, you must make clear to others the license terms of this work.
  15. // * Any of these conditions can be waived if you get permission from the copyright holder.
  16. #endregion
  17. using System;
  18. using System.Collections.Generic;
  19. using System.Text;
  20. namespace Newtonsoft.Json
  21. {
  22. /// <summary>
  23. /// Specifies the type of Json token.
  24. /// </summary>
  25. enum JsonToken
  26. {
  27. /// <summary>
  28. /// This is returned by the <see cref="JsonReader"/> if a <see cref="JsonReader.Read"/> method has not been called.
  29. /// </summary>
  30. None,
  31. /// <summary>
  32. /// An object start token.
  33. /// </summary>
  34. StartObject,
  35. /// <summary>
  36. /// An array start token.
  37. /// </summary>
  38. StartArray,
  39. /// <summary>
  40. /// An object property name.
  41. /// </summary>
  42. PropertyName,
  43. /// <summary>
  44. /// A comment.
  45. /// </summary>
  46. Comment,
  47. /// <summary>
  48. /// An interger.
  49. /// </summary>
  50. Integer,
  51. /// <summary>
  52. /// A float.
  53. /// </summary>
  54. Float,
  55. /// <summary>
  56. /// A string.
  57. /// </summary>
  58. String,
  59. /// <summary>
  60. /// A boolean.
  61. /// </summary>
  62. Boolean,
  63. /// <summary>
  64. /// A null token.
  65. /// </summary>
  66. Null,
  67. /// <summary>
  68. /// An undefined token.
  69. /// </summary>
  70. Undefined,
  71. /// <summary>
  72. /// An object end token.
  73. /// </summary>
  74. EndObject,
  75. /// <summary>
  76. /// An array end token.
  77. /// </summary>
  78. EndArray,
  79. /// <summary>
  80. /// A JavaScript object constructor.
  81. /// </summary>
  82. Constructor,
  83. /// <summary>
  84. /// A Date.
  85. /// </summary>
  86. Date
  87. }
  88. }