In F#, how can I generically turn this (probably invalid) JSON:
[
{
filter : {
subject : "foo"
},
action : {
assign_to : "bar"
}
},
{
filter : {
author : "foo"
},
action : {
status : "bar"
}
}
]
into this (pseudocode):
match ticket with
{subject="foo"} -> updateticket(assign_to="bar")
{author="foo"} -> updateticket(set_status="bar")