Hi ry, I think you have to use counting or some form of stack (e.g. ragel's builtin fcall & fret, I use something similar for JSON but use ragel's state charts and a custom stack) because JSON is not a regular language. - Paul