How to encode an array in json?
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts
Page 1 of 1
Hi there,
I'm a bit rusty with vb.net and I need your help for encoding this:
I'm a bit rusty with vb.net and I need your help for encoding this:
Code: Select all
in json format in vb.net, how you can see this string is already decoded in json but I want know how I can create an array or something like for store the days with the break time. Essentially:{"monday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"tuesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"wednesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"thursday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"friday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"saturday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"sunday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]}}
Code: Select all
Someone could help me to create the array with this contents and convert it into json? Thanks."monday":{
"start":"09:00",
"end":"18:00",
"breaks":[
{
"start":"11:20",
"end":"11:30"
},
{
"start":"14:30",
"end":"15:00"
}
]
},
"tuesday":{
"start":"09:00",
"end":"18:00",
"breaks":[
{
"start":"11:20",
"end":"11:30"
},
{
"start":"14:30",
"end":"15:00"
}
]
},
I'm in the empire business.
Vb.net doesnt support json
You can still do it but iets nearly impossible.
Json is for PHP or Java
You can still do it but iets nearly impossible.
Json is for PHP or Java
I am sorry, but you're utterly wrong here MrGeneralQ. VB.NET does support JSON, but with a library. You can very easily do it in VB.NET. Lastly, JSON is for Ruby, PHP, Python or any other language. It was essentially drafted for backends since it was easier and faster than XML. Since Java, PHP are mainly backend languages, it would've been wise to include the JSON engine. For VB.NET, that wasn't the case; so, libraries.
This topic may help:
http://www.codenstuff.com/forum/viewtop ... 38&t=11520
Also I'll respond to PM's when I have time to get through them.
http://www.codenstuff.com/forum/viewtop ... 38&t=11520
Also I'll respond to PM's when I have time to get through them.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
CodenStuff wrote:This topic may help:Okay I've fixed with the .JSON library, anyway, let me update for the pv message it's important
http://www.codenstuff.com/forum/viewtop ... 38&t=11520
Also I'll respond to PM's when I have time to get through them.
I'm in the empire business.
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023