private string queryJson( bool isCount = false, bool useProduct = false, bool isSingle = false) => JsonSerializer.Serialize( new SerializationPayload(isCount ? PayloadType.Count : (isSingle ? PayloadType.Single : PayloadType.Array)) { Json = jsonWrapper.FromSerializationRoot( QueryExprSerializer.Serialize(altQuery ?? (useProduct ? productsQuery : query))) });
private string GetJson(bool isCount = false) => JsonSerializer.Serialize( new SerializationPayload(isCount ? PayloadType.Count : PayloadType.Array) { Json = jsonWrapper.FromSerializationRoot(QueryExprSerializer.Serialize(query)), });
private string queryJson() => JsonSerializer.Serialize( new SerializationPayload { Json = jsonWrapper.FromSerializationRoot(QueryExprSerializer.Serialize(query)) });