I'm not sure what would be better. JSON is simple, but its literary-style syntax is more expensive to parse than a format that uses sentinels and terminal markers.
I'm not familiar enough with alternative encoding schemes, but TOML would have been better.
The other issue is the query syntax, which...