⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Functions for encoding strings, dates, arrays and dictionaries for JSON in Classic ASP

Notifications You must be signed in to change notification settings

webaware/ASP-JSONEncode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

JSONEncode

Functions for encoding strings, dates, arrays and dictionaries for JSON in Classic ASP. String encoding uses fast JavaScript regular expression search/replace.

Usage

See test/index.asp for examples of usage.

JSONEncodeString

Encode a string for embedding as a value in a JSON document

t = JSONEncodeString(s)

JSONEncodeDate

Format a date object into ISO-8601 so that JavaScript will parse it

d = JSONEncodeDate(Now)

JSONEncodeDict

Convert a dictionary object into a JSON object literal, with a parent element

json = JSONEncodeDict("response", dict)

JSONEncodeArray

Convert an array into a JSON array literal

json = JSONEncodeArray(arr)

About

Functions for encoding strings, dates, arrays and dictionaries for JSON in Classic ASP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published