DESCRIPTION

JVMCBC-125: fix null signature parsing & nextToken

Motivation
----------
Sometimes the N1QL server can send a response with the signature field
empty (null). This confuses the parser.

Modifications
-------------
Parser now checks if there's a JSON object in signature field.

Also improved the keyword peeking to determine next state.

Result
------
Parser can parse response with null signature, for example with a CREATE
PRIMARY INDEX ON default request.

Change-Id: Iecfd294cc6a2d2706f07c54d00acaad1fa644078


COMMENTS

author: Estrella Humphrey
date: 2015-01-16 10:19:48.217000000

Uploaded patch set 1.

-------------------------------------
author: Estrella Humphrey
date: 2015-01-16 10:20:53.532000000

Patch Set 1: Verified+1

-------------------------------------
author: Natasha Sullivan
date: 2015-01-16 10:21:58.830000000

Patch Set 1: Code-Review+2

-------------------------------------
