macro_rules! to_string_x {
    () => { ... };
    ($a:expr $(,)*) => { ... };
    ($a:expr, $($rest:tt)*) => { ... };
}
Expand description

Based on to_string_x()

Examples:

#[macro_use] extern crate serde_json_lodash;
use serde_json::json;
assert_eq!(
  to_string_x!(json!(null)),
  "".to_owned()
);
assert_eq!(
  to_string_x!(json!(-0)),
  "0".to_owned() // In rust world, -0 is 0
);
assert_eq!(
  to_string_x!(json!([1, 2, 3])),
  "1,2,3".to_owned()
);

More examples:

assert_eq!(to_string_x!(), "".to_owned());