serde_json::Value with lodash.js spec, makes life easier.
serde_json::Value
or std::ops::Fn
::capitalize
, people don't want just with serde_json::Value
, but also primitive types. So this lib export additional helper functions:
x_
prefix means input not Value, e.q. x_capitalize(&str) -> Value
_x
suffix means output not Value, e.q. capitalize_x(Value) -> String
x_capitalize_x(&str) -> &str
_.get(object, path, [defaultValue])
, the ported fn should be ::get(object, path, defaultValue)
, no optional_.merge(object, [...sources])
, the ported fn should be ::merge(object, source)
, no more optionalsExamples:
section should be exactly same as the examples in lodash doc. If we need more examples, they should be put in More Examples:
section