Go API to perform additional logic on JSON-marshalled structures