JSONPath Experimentation

Experimenting with JSONPath queries using .search

To help experimenting with JSONPath, automod .search can be used on a .sam file consisting of the .uasssets of interests and their associated JSONPath to try.

For example:

# EffectTable

$..[?(@.Name == 'N_Drone_Scan')]

$..[?(@.Name == 'N_Drone_Scan')]..[?(@.Name == 'LifeTime')]

$..[?(@.Name == 'LV_Dead_Ocean')]


# TargetFilterTable

drone-scan: $..[?(@.Name =~ /N_Drone_Normal_Scan1_1_Target.*/)]


# DifficultyStatGroupTable

$..Data[16:31]

$..Data[60:86]

That is, the .uassset name should be prefixed with # with the JSONPath expressions following it in separate lines. The expression can optionally labeled by prefixing it with (<alphanum>|'_'|'-')+:. Any line that does not adhere these forms is ignored.

automod-search

The search results are written as JSON files, one file per JSONPath expression, whose name contains the expression number of appearance for the .uasset with the label, if specified.