Playmaker Forum

PlayMaker News => General Discussion => Topic started by: tengkunash99 on July 13, 2020, 05:51:14 AM

Title: Datamaker JSON to XML conversion issue.
Post by: tengkunash99 on July 13, 2020, 05:51:14 AM
This is my json.

{
  "17_jigsaw_kangaroo_scene1": {
    "LevelSelection": [
      {
        "IsCompleted": "false"
      },
      {
        "IsCompleted": "false"
      },
      {
        "IsCompleted": "false"
      },
      {
        "IsCompleted": "false"
      }
    ]
  }
}

When i use JSON to XML convert playmaker action the data become like this. everything else is ok except this line.

<_x0031_7_jigsaw_kangaroo_scene1>

May I know why the number 17 suddenly become that weird number? Is it a bug or am I missing something?
Title: Re: Datamaker JSON to XML conversion issue.
Post by: jeanfabre on July 14, 2020, 02:51:45 AM
Hi,

 that's odd and it's likely because of the text format, where do you get this string from?

have you tried to open this string you are getting from a texteditor ( a good one), so that you can check the actual content and maybe detect the same weird character.

try also to save this string in a variable and see if the result is the same, and then mess with the string, remove the offending char, try to completly remove the line and rewrite it as well.


Bye,

 Jean
Title: Re: Datamaker JSON to XML conversion issue.
Post by: tengkunash99 on July 14, 2020, 11:42:47 PM
Hi Jean,

I am using variable, I tried to rewrite and test with other combination too. Seems like any number added after " will produce that weird conversion.

Please check the attachment.

Thanks.
Title: Re: Datamaker JSON to XML conversion issue.
Post by: jeanfabre on July 15, 2020, 02:37:40 AM
Hi,

 ok let me try on my end, what is the action you are using so that I use the same one.

Bye,

 Jean
Title: Re: Datamaker JSON to XML conversion issue.
Post by: tengkunash99 on July 15, 2020, 03:59:58 AM
Hi Jean,

I just use 2 action "Data Maker Xml Proxy" and "Convert Json String To Xml Node".
I use a variable "strjson" to test.

My unity is 2018.4.23f1
Playmaker version is 1.9.0.p19


Title: Re: Datamaker JSON to XML conversion issue.
Post by: jeanfabre on July 17, 2020, 02:48:24 AM
Hi,

 I can repro here, it seems it doesn't like a node name starting with special char, Investigating but not finding much, will keep looking...

Bye,

 Jean