getting ToJson working again

added GetNode function
fixed array of objects confusion caused by the itemKey being set with
the arrays itemKey

fixed JArray token to use {} instead of [] which was confusing wild-card
searches for '[@J%'. The combination of '[' and the '%' wildcard symbol
caused SQL to ignore the '['.