Currently, the code switches on the length of an extended JSON key and then does a linear scan for key equality to dispatch. In most cases, the first letters are different (e.g. $code $date $type) and we could switch on the first letter after the $. That might be faster than chained if-else comparisons.