Stickers: How can I create a second JSON Array? Can I get an example code please XD

Created on 16 Nov 2018  ยท  5Comments  ยท  Source: WhatsApp/stickers

How can I create a second JSON Array, can I get example code

All 5 comments

Do you mean: "how can I add more than one stickers pack in the contents.json"? ๐Ÿค”

yes bro :d

Create Another Folder inside assets with name 2 .
Put your stickers inside the folder .
After that modify the contents.json like i provided .
ExampleJSON.txt

Same as @suriya27 but formatted correctly for better readability:

{
  "android_play_store_link": "",
  "ios_app_store_link": "",
  "sticker_packs": [
    {
      "identifier": "1",
      "name": "Cuppy",
      "publisher": "Jane Doe",
      "tray_image_file": "tray_Cuppy.png",
      "publisher_email": "",
      "publisher_website": "",
      "privacy_policy_website": "",
      "license_agreement_website": "",
      "stickers": [
        {
          "image_file": "01_Cuppy_smile.webp",
          "emojis": ["โ˜•", "๐Ÿ™‚"]
        },
        {
          "image_file": "02_Cuppy_lol.webp",
          "emojis": ["๐Ÿ˜„", "๐Ÿ˜€"]
        },
        {
          "image_file": "03_Cuppy_rofl.webp",
          "emojis": ["๐Ÿ˜†", "๐Ÿ˜‚"]
        },
        {
          "image_file": "04_Cuppy_sad.webp",
          "emojis": ["๐Ÿ˜ฉ", "๐Ÿ˜ฐ"]
        },
        {
          "image_file": "05_Cuppy_cry.webp",
          "emojis": ["๐Ÿ˜ญ", "๐Ÿ’ง"]
        }
      ]
    },
    {
      "identifier": "2",
      "name": "Cuppy2",
      "publisher": "John Doe",
      "tray_image_file": "tray_Cuppy.png",
      "publisher_email": "",
      "publisher_website": "",
      "privacy_policy_website": "",
      "license_agreement_website": "",
      "stickers": [
        {
          "image_file": "21_Cuppy_hi.webp",
          "emojis": ["๐Ÿ–", "๐Ÿ™‹"]
        },
        {
          "image_file": "22_Cuppy_bye.webp",
          "emojis": ["๐Ÿ–", "๐Ÿ‘‹"]
        },
        {
          "image_file": "23_Cuppy_greentea.webp",
          "emojis": ["๐Ÿต", "๐Ÿ˜Œ"]
        },
        {
          "image_file": "24_Cuppy_phone.webp",
          "emojis": ["๐Ÿ“ฑ", "๐Ÿ˜ฆ"]
        }
      ]
    }
  ]
}

In this case, for consistency you should put your second sticker pack in a 2 folder. I'm not sure if you are required to do this on Android.

Oh Thank You so much, It worked XD

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sparklester picture Sparklester  ยท  4Comments

ptkdev picture ptkdev  ยท  5Comments

mbouix picture mbouix  ยท  7Comments

sagarvekariyam picture sagarvekariyam  ยท  6Comments

superteacher2019 picture superteacher2019  ยท  3Comments