Skip to content

Enhancement Request: Nicer Json output for info command #147

Description

@SZRabinowitz

When I run:
java -jar apkeditor.jar info -i input.apk -t json
It outputs a JSON list of many Dicts. For example:

[
 {
  "package":"com.waze"
 },
 {
  "VersionCode":1021577
 },
 {
  "VersionName":"9999.46.0.2"
 },
 {
  "AppName":"Waze"
 },
 {
  "AppIcon":"res/drawable-ldpi-v4/launch_icon.png"
 },
 {
  "application-class":"com.waze.WazeApplication"
 },
 {
  "activity-main":"com.waze.FreeMapAppActivity"
 }
]

This isn't the most optimized output for anything automated. Lookups are not easy. It would better to have this output:

[
 {
  "package":"com.waze",
  "VersionCode":1021577,
  "VersionName":"9999.46.0.2",
  "AppName":"Waze",
  "AppIcon":"res/drawable-ldpi-v4/launch_icon.png",
  "application-class":"com.waze.WazeApplication",
  "activity-main":"com.waze.FreeMapAppActivity",
 }
]

With this output, it will be easy to lookup any key and get a value. Example: result.getString("activity-main");. The current implementation looking through each set of key, value to find the right one.

@REAndroid please let me know your thoughts, thank you for this amazing project!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions