@@ -21,7 +21,7 @@ def self.json_create(object)
2121
2222 def to_json ( *args )
2323 {
24- 'json_class' => self . class . name ,
24+ JSON . create_id => self . class . name ,
2525 's' => tv_sec ,
2626 'n' => respond_to? ( :tv_nsec ) ? tv_nsec : tv_usec * 1000
2727 } . to_json ( *args )
@@ -37,7 +37,7 @@ def self.json_create(object)
3737
3838 def to_json ( *args )
3939 {
40- 'json_class' => self . class . name ,
40+ JSON . create_id => self . class . name ,
4141 'y' => year ,
4242 'm' => month ,
4343 'd' => day ,
@@ -63,7 +63,7 @@ def self.json_create(object)
6363
6464 def to_json ( *args )
6565 {
66- 'json_class' => self . class . name ,
66+ JSON . create_id => self . class . name ,
6767 'y' => year ,
6868 'm' => month ,
6969 'd' => day ,
@@ -83,7 +83,7 @@ def self.json_create(object)
8383
8484 def to_json ( *args )
8585 {
86- 'json_class' => self . class . name ,
86+ JSON . create_id => self . class . name ,
8787 'a' => [ first , last , exclude_end? ]
8888 } . to_json ( *args )
8989 end
@@ -98,7 +98,7 @@ def to_json(*args)
9898 klass = self . class . name
9999 klass . to_s . empty? and raise JSON ::JSONError , "Only named structs are supported!"
100100 {
101- 'json_class' => klass ,
101+ JSON . create_id => klass ,
102102 'v' => values ,
103103 } . to_json ( *args )
104104 end
@@ -113,7 +113,7 @@ def self.json_create(object)
113113
114114 def to_json ( *args )
115115 {
116- 'json_class' => self . class . name ,
116+ JSON . create_id => self . class . name ,
117117 'm' => message ,
118118 'b' => backtrace ,
119119 } . to_json ( *args )
@@ -127,7 +127,7 @@ def self.json_create(object)
127127
128128 def to_json ( *)
129129 {
130- 'json_class' => self . class . name ,
130+ JSON . create_id => self . class . name ,
131131 'o' => options ,
132132 's' => source ,
133133 } . to_json
0 commit comments