cmFileAPI: Use cmJSONState to read client queries

This approach will be more portable.
3 files changed