Click here to Skip to main content
15,742,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
First I would like to thank you for taking the time to read my question. Second I will just dive right in and ask the question.

Using visual studio 2012, and

I have json data that has been stored as a string

example json data = {"result":{"is_developer_mode":false,"app_msg":false,"is_maintenance":false,"user_bet":{"lines_count":9,"winTypes":[],"score_info":{"balance":373230000000.74,"current_level_reward":2200,"mega_bonus_up_to":8400,"level":26,"next_level_reward":2300,"prev_level_experience":870000,"next_level_experience":985000,"experience":974346.9},"bonus_number":0,"win_lines":{},"view_reels":{"2":[6,10,1,10,9],"1":[11,7,7,6,11],"0":[1,9,6,0,8]},"is_scatter":false,"win_amount":0,"free_spins_amount":1375,"bet":{"id":3,"value":0.25},"giftfree_spins":0,"isMiniBonus":false,"total_free_spins":0,"current_free_spin":0,"total_giftfree_spins":0,"is_bonus":false,"don_balance":0}},"cmd":"SPIN","service":{"code":0,"error_desc":""}}

Now that I have the data, I can create a class.vb , but what Is needing to be done now is I want to be able to pass it through a "Deserialize(String strJason)" call so that I can display the data on a form for example:

.... and so on

Can some one be as kind to explain to me by code how exactly to do that? Amy Help is greatly appreciated.
Updated 28-Sep-13 8:51am

1 solution

It is already serialized, that is it's a string representation of an JasonObject. You need to use the Deserialize<T>(String strJason) method call to convert the JASON string into an object of type T.


Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900