Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
C#/PHP read JSON string from PHP into C#
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 456456" data-attributes="member: 87030"><p>I see, but I haven't work with JSON before so could you help a little bit in the right direction?</p><p>[automerge]1581179330[/automerge]</p><p>I have figured out that I need to add an object like this;</p><p></p><p>Where I have add this in the first line <strong>{ "info":</strong> , and <strong>}</strong> in the last line. I dit check this in a validator and that works. But how can I deploy this in my C# project?</p><p>[CODE=php]{</p><p> "info": [{</p><p> "Firstname": "Jan",</p><p> "Middlename": "de",</p><p> "Lastname": "Hoop",</p><p> "CredentialNumber": "12018",</p><p> "CustomerId": 5</p><p> }]</p><p>}[/CODE]</p><p>[automerge]1581179508[/automerge]</p><p>When I start the C# project I get now this message;</p><p>Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: [. Path 'info', line 2, position 9.'</p></blockquote><p></p>
[QUOTE="Skythrust, post: 456456, member: 87030"] I see, but I haven't work with JSON before so could you help a little bit in the right direction? [automerge]1581179330[/automerge] I have figured out that I need to add an object like this; Where I have add this in the first line [B]{ "info":[/B] , and [B]}[/B] in the last line. I dit check this in a validator and that works. But how can I deploy this in my C# project? [CODE=php]{ "info": [{ "Firstname": "Jan", "Middlename": "de", "Lastname": "Hoop", "CredentialNumber": "12018", "CustomerId": 5 }] }[/CODE] [automerge]1581179508[/automerge] When I start the C# project I get now this message; Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: [. Path 'info', line 2, position 9.' [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
C#/PHP read JSON string from PHP into C#
Top