3 ms·
This sadly does not help if js code is minified/obfuscated and data is exchanged using some binary/binary-like protocol like grpc. Unfortunately this is increas
by marwis 4y ago
This sadly does not help if js code is minified/obfuscated and data is exchanged using some binary/binary-like protocol like grpc. Unfortunately this is increasingly common.
The only long term way is to parse visible text.
- mdaniel 4y agoI've never seen grpc from a browser on a consumer-facing site; do you have an example I could see? That said, for this approach something like grpc would be a benefit since AIUI grpc is designed to be versioned so one could identify structural changes in the payload fairly quickly versus the json-y way of "I dunno, are there suddenly new fields?"
- marwis 4y agoNot aware of any actual grpc websites but given grpc-web has 6.5k stars on github something must be out there. Google's websites frequently use binary-like formats where json is just an array of values with no properties, and most of these values are numbers. See for example Gmail.
- kccqzy 4y agoThat's likely just an encoding into JSON of protobuf messages. The typical wire format contains a sequence of field tag followed by contents. They can just make it an even-sized array.