AeonLucid / POGOProtos

A central repository for all proto files of PokémonGO.
MIT License
726 stars 279 forks source link

From decoded game_master to JSON #255

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi,

After decoding the raw game_master present in my phone's cache with the command

protoc --decode Holoholo.Rpc.GetGameMasterClientTemplatesOutProto <path_to_POGOProtos>/base/v0.47.1.proto < GAME_MASTER.raw > GAME_MASTER.decoded

the produced output looks like

item_templates { template_id: "BADGE_BATTLE_ATTACK_WON" badge_settings { badge_type: BADGE_BATTLE_ATTACK_WON badge_rank: 4 targets: 10 targets: 100 targets: 1000 } } item_templates { template_id: "BADGE_BATTLE_TRAINING_WON" badge_settings { badge_type: BADGE_BATTLE_TRAINING_WON badge_rank: 4 targets: 10 targets: 100 targets: 1000 } }...

This is very close to a JSON file: is there a simple way to convert this output, or decoded game_master, to the correct JSON format?