Search Unity

Bug Custom Data in economy gives an error

Discussion in 'Economy' started by ubicon, Dec 3, 2022.

  1. ubicon

    ubicon

    Joined:
    Jul 6, 2021
    Posts:
    1
    Hi,
    Some problems occur with custom data in the economy.
    When you add custom data to an item in economy, you get this error.

    JsonReaderException: Unexpected character encountered while parsing value: {. Path 'customData', line 1, position 155.

    If you remove that custom JSON data everything is fine.
    Can someone explain if this is a Unity bug?
     
  2. Laurie-Unity

    Laurie-Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    220
    Hi @ubicon,

    Can you tell me what version of the Economy package you are using and the version of Unity Editor. Can you also share the code snippet that you are using to retirieve the economy item and parse the custom data from it and perhaps a screenshot of copy of the custom data contents for this item from the dashboard.

    With all these details I will be able investigate and identify if it is a bug in Economy, or show you how to correct the issue.