Stickers: JSON structure generate

Created on 24 Jan 2019  ยท  9Comments  ยท  Source: WhatsApp/stickers

is there any way to generate the json structure from the images automatically ?

help wanted

Most helpful comment

@developerpistachio @MarvinJWendt

I have created script that will give you JSON of selected files.

Convert Image names to JSON Array (WAStickerApp)

That will allows you to:

  • Select 30 Images (Must be webp)
  • JSON Array of Name of Selected Files

Format:

[
    {
        "image_file":"1.webp",
        "emojis":[
            "โ˜•",
            "๐Ÿ™‚"
        ]
    },
    {
        "image_file":"2.webp",
        "emojis":[
            "๐Ÿ˜„",
            "๐Ÿ˜€"
        ]
    },
    {
        "image_file":"3.webp",
        "emojis":[
            "โ˜•",
            "๐Ÿ™‚"
        ]
    }
]

I will try to add more functionality like developer can input publisher name, email, Android/iOS link etc...

Created Repository WAStickerApp-JSON-Generator on GitHub if anyone wants to contribute <3

Hope it will helps. Thank you.

All 9 comments

I am not sure what is the question. Please elaborate.

Hey @developerpistachio,
Currently there is no way to generate the JSON structure AFAIK. I don't think that anyone is working on such a tool. If you find a tool or create one, feel free to post the link here - maybe that could be added to the docs then.
I also thought about such a tool, but sadly I don't have time for that at the moment.

Not that I'm aware of... The JSON file in the sticker-master is quite user friendly though a bit time consuming.

You can use either Android Studio or this to help debug your JSON file once you modify it.

Hey @developerpistachio,
Currently there is no way to generate the JSON structure AFAIK. I don't think that anyone is working on such a tool. If you find a tool or create one, feel free to post the link here - maybe that could be added to the docs then.
I also thought about such a tool, but sadly I don't have time for that at the moment.

I have created one file that I used to create JSON (for one pack) from files. I will post online soon so it will be helpful to all developers.

@developerpistachio @MarvinJWendt

I have created script that will give you JSON of selected files.

Convert Image names to JSON Array (WAStickerApp)

That will allows you to:

  • Select 30 Images (Must be webp)
  • JSON Array of Name of Selected Files

Format:

[
    {
        "image_file":"1.webp",
        "emojis":[
            "โ˜•",
            "๐Ÿ™‚"
        ]
    },
    {
        "image_file":"2.webp",
        "emojis":[
            "๐Ÿ˜„",
            "๐Ÿ˜€"
        ]
    },
    {
        "image_file":"3.webp",
        "emojis":[
            "โ˜•",
            "๐Ÿ™‚"
        ]
    }
]

I will try to add more functionality like developer can input publisher name, email, Android/iOS link etc...

Created Repository WAStickerApp-JSON-Generator on GitHub if anyone wants to contribute <3

Hope it will helps. Thank you.

@developerpistachio @MarvinJWendt

I have added more functionality as below.

  • Folder Name (Identifier)
  • Sticker Pack Name
  • Publisher
  • Tray Image (with .png)
  • Publisher Email
  • Publisher Website
  • Privacy Policy URL
  • Licence Agreement Website
  • Images (Only .webp)

It will give full pack array in JSON.

Please check and do let me know If any suggestions.

Convert Image names to JSON Array (WAStickerApp)

Thanks.

Hello @MarvinJWendt,

If you think that my link is helpful to other developers, you can put it in docs.

Thanks.

Hey, @pratikbutani,
I already considered that, but I don't have much time at the moment. If you want, I can take a closer look over the weekend ๐Ÿ˜„
But your tool looks good as far as I can tell now ๐Ÿ‘
I have some Ideas to improve it, I'll send them to you as soon as I have time again :)

Sadly we could not implement the tool from @pratikbutani due to a WhatsApp regulation. There aren't any updates anymore, so I guess this issue can be closed. If any further questions may come up, feel free to drop a comment and I will reopen the issue :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sparklester picture Sparklester  ยท  4Comments

JNSAPH picture JNSAPH  ยท  4Comments

sagarvekariyam picture sagarvekariyam  ยท  6Comments

noomanidrisi picture noomanidrisi  ยท  5Comments

viztushar picture viztushar  ยท  4Comments