use Json;
/// Resolve a dotted/indexed field path (e.g. `data.user.id`, `items.0`) against
/// a parsed record, mirroring the CLI's resolution rules.
/// A JSON scalar (string, number, bool) as a borrowed `&str`, if it is one.
/// Split a dotted field path into segments.