question

brendan avatar image
brendan asked

Use custon JSON File

Info
started a topic on Wed, 16 September 2015 at 7:57 AM

Is posible use a custon JSON File for add attributes to a catalog Item?

For example I have the next JSON:

{

    "cards": [

        {

            "id": "char_1",

            "name": "Thorir Throat-Cutter",

            "description": "Thorir Throat-Cutter",

            "img_name": "dane_char_a1",

            "culture": "1",

            "card_type": "0",

            "character": {

                "attack": "1",

                "defense": "3",

                "life": "8",

                "accuracy": "0.9",

                "move_dist": "2",

                "attack_dist": "1",

                "evasion_skill": "0.1",

                "melee_skill": "0.6",

                "long_distance_skill": "0.05"

            }

        }

}

If I try to add this json as "CustomData" on a item, does not work because this has not the format of PlayFab JSON....

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

1 Comment
Brendan Vanous said on Wed, 16 September 2015 at 5:45 PM

Most JSON implementations provide Stringify and Parse methods, to make this a simple one-call operation in each direction. Can you check to see if those are available in your chosen environment and, if not, let us know the specifics of what you're using?

Brendan

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.