Git Product home page Git Product logo

aspjson's People

Contributors

cmbuckley avatar ronaldzielaznicki avatar tugrul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aspjson's Issues

how to make...

Can't open Google Code ,how to make this?

{"name1":value1,"name2":value2,"data":[{"ArrName":"ArrVlaue1","ArrName":"ArrVlaue2"},{"ArrName":"ArrVlaue3","ArrName":"ArrVlaue4"}]}

I use QueryToJSON only make [{"ArrName":"ArrVlaue1","ArrName":"ArrVlaue2"},{"ArrName":"ArrVlaue3","ArrName":"ArrVlaue4"}]

Eval blocked by Windows Defender

Unhandled exception at line 157, column 5 in json.asp
0x800a802d - Microsoft VBScript runtime error: This script contains malicious content and has been blocked by your antivirus software.: 'Eval' occurred

toJSON is Slow

Firstly, thanks for creating this code.

Small issue though. I have an array containing two entries which are both jsObjects containing 5 entries each. When I pass the Results array to toJSON shown below, it adds 1000ms to the execution time.

If I create a jsObject and set myJSObject("myresults") = Results, and myJSObject.flush, the execution time is only 34ms in total, but then the format is not correct as it includes the 'myresults' field name in the output.

'tblResults is an ADODB RecordSet.

dim Results()
redim Results(-1)
dim Result

do until tblResults.eof
	set Result = jsObject()

	Result("tenancyid") = tblResults("tenancyid")	
	if tblResults("company") <> "" then
		Result("fullname") = tblResults("company")
	else
		Result("fullname") = tblResults("firstname") & " " & tblResults("surname")
	end if

	Result("apartmentnumber") = tblResults("namenumber")
	Result("blockname") = tblResults("blockname")
	Result("postcode") = tblResults("postcode")
	
	redim preserve Results(ubound(Results)+1)
	set Results(ubound(Results)) = Result
	
	tblResults.movenext
loop

ResultsJson = toJSON(Results)

response.write ResultsJson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.