We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab9c900 commit 11a56c3Copy full SHA for 11a56c3
src/libstd/json.rs
@@ -510,6 +510,14 @@ impl of to_json for json {
510
fn to_json() -> json { self }
511
}
512
513
+impl of to_json for @json {
514
+ fn to_json() -> json { *self }
515
+}
516
+
517
+impl of to_json for int {
518
+ fn to_json() -> json { num(self as float) }
519
520
521
impl of to_json for i8 {
522
fn to_json() -> json { num(self as float) }
523
@@ -526,6 +534,10 @@ impl of to_json for i64 {
526
534
527
535
528
536
537
+impl of to_json for uint {
538
539
540
529
541
impl of to_json for u8 {
530
542
531
543
0 commit comments