I am using TileStache to serve vector tiles from PostgreSQL and using Tangram to display these tiles by passing URL ('http://localhost:8080/composite/{z}/{x}/{y}.json') in the data source. The response i get is in JSON format, which is what i wanted.
How to encrypt the JSON response? so that it is not human readable at the client end and readable at server end.
You can use protocol buffers for encoding the data. Here are two implementations geobuf and vt-pbf. But stealing of data can not be stopped as it need to be decoded at client side.