I'm currently building some custom filters for a web api. I thought of a custom query string that looks like in the following example:
http://localhost/api/users?filter=
age(min:18,max:45),explvl(atleast:60),classes(types:[golem,tank,dozer])
I didn't want to encode Json to Base64 on the clientside and I find this format much easier to read. Currently I get the filter query parameter back as string. The question I have is how to effectively transform this format to json and backwards if possible.
I'm also open for alternative solutions that achieve the same readability and provide a parser implementation.