Updated JSON parser to include preprocessing steps as accessible
methods. This makes it more convenient to embed and extrat states in
other JSON messages.