Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionExcel VBA For Loop Weighted Average Pin
Member 1226553729-Feb-16 22:40
Member 1226553729-Feb-16 22:40 
AnswerRe: Excel VBA For Loop Weighted Average Pin
Kenneth Haugland29-Feb-16 23:50
mvaKenneth Haugland29-Feb-16 23:50 
GeneralRe: Excel VBA For Loop Weighted Average Pin
Member 122655371-Mar-16 0:27
Member 122655371-Mar-16 0:27 
GeneralRe: Excel VBA For Loop Weighted Average Pin
Kenneth Haugland1-Mar-16 11:13
mvaKenneth Haugland1-Mar-16 11:13 
QuestionNet.Sockets.TcpListener Pin
hansoctantan29-Feb-16 1:40
professionalhansoctantan29-Feb-16 1:40 
QuestionRe: Net.Sockets.TcpListener Pin
Eddy Vluggen29-Feb-16 2:41
professionalEddy Vluggen29-Feb-16 2:41 
AnswerRe: Net.Sockets.TcpListener Pin
Dave Kreskowiak29-Feb-16 3:55
mveDave Kreskowiak29-Feb-16 3:55 
Questionjson exception Pin
duup27-Feb-16 0:43
duup27-Feb-16 0:43 
Using newtonsoft json to read a json file.
I download a sample json file with zip codes: http://jsonstudio.com/resources/

using this code:
C#
Dim json As String = File.ReadAllText("C:\Users\Presentation\Desktop\zips.json")
Dim o As JObject = JObject.Parse(json)



But it fails with:
C#
An unhandled exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.dll

Additional information: Additional text encountered after finished reading JSON content: {. Path '', line 2, position 0.



Why would this default, and I assume correct data file, fail already here?

Can anyone help me? Thx
AnswerRe: json exception Pin
Dave Kreskowiak27-Feb-16 10:49
mveDave Kreskowiak27-Feb-16 10:49 
GeneralRe: json exception Pin
duup28-Feb-16 21:04
duup28-Feb-16 21:04 
GeneralRe: json exception Pin
Dave Kreskowiak29-Feb-16 2:41
mveDave Kreskowiak29-Feb-16 2:41 
Questionhow to start a vbs script in a vbs script on a client computer Pin
Member 1191673523-Feb-16 22:31
Member 1191673523-Feb-16 22:31 
AnswerRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak24-Feb-16 2:16
mveDave Kreskowiak24-Feb-16 2:16 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Member 1191673524-Feb-16 3:39
Member 1191673524-Feb-16 3:39 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak24-Feb-16 3:58
mveDave Kreskowiak24-Feb-16 3:58 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Member 1191673525-Feb-16 0:58
Member 1191673525-Feb-16 0:58 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak25-Feb-16 1:42
mveDave Kreskowiak25-Feb-16 1:42 
QuestionStarting the process as user will not work on Win2012 Pin
byka23-Feb-16 1:29
byka23-Feb-16 1:29 
AnswerRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 4:06
mveDave Kreskowiak23-Feb-16 4:06 
GeneralRe: Starting the process as user will not work on Win2012 Pin
byka23-Feb-16 5:13
byka23-Feb-16 5:13 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 5:16
mveDave Kreskowiak23-Feb-16 5:16 
GeneralRe: Starting the process as user will not work on Win2012 Pin
byka23-Feb-16 7:14
byka23-Feb-16 7:14 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 8:14
mveDave Kreskowiak23-Feb-16 8:14 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Eddy Vluggen23-Feb-16 8:35
professionalEddy Vluggen23-Feb-16 8:35 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 9:01
mveDave Kreskowiak23-Feb-16 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.