add naive array parsing to json sample
introduce on(nil) rule for the json parser