add convenience methods to JsonParser