question

jianghuafan avatar image
jianghuafan asked

sdktestclient.SDKTesterException: org.json.JSONException: Forbid value: NaN

Today, I test my app by Amazon App Tester. but there are a error, check log : 08-28 19:01:07.975: E/AmazonAppTester/IapCommandHandler(10784): Error handling request: com.amazon.sdktestclient.SDKTesterException: org.json.JSONException: Forbidden numeric value: NaN next is JSON file Content "coinpack.tier.2": { "itemType": "CONSUMABLE", "price": "$0.99", "title": "Cannonballs", "description": "Avast! Yarr! Me hearty! Et-cetera!", "smallIconUrl": "http://some/image.jpg" } Is there a proper way to fix it? Thanks for help!!!
mobile associates
10 |5000

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

1 Answer

tkoba@amazon avatar image
tkoba@amazon answered
Hi, Can you try by removing '$' sign for price data. Should be in a format like the following: "coinpack.tier.2": { "itemType": "CONSUMABLE", "price": 0.99, "title": "Cannonballs", "description": "Avast! Yarr! Me hearty! Et-cetera!", "smallIconUrl": "http://some/image.jpg" }
10 |5000

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