Added Query.Parse(json) functionality

As well as a test