Ideally the query should not be tied to json, but should also be able to use phps. The parent build method uses the users' choice on this. 
In most cases the decode json or phps data have very little to no differences, but I haven't tested in this case.