![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Classic ASP) JSON PathPrefix ExampleDemonstrates the JSON object's
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <% success = 0 set json = Server.CreateObject("Chilkat.JsonObject") json.PathPrefix = "company.billing." success = json.UpdateString("company_name","TechNova Solutions Inc.") success = json.UpdateString("address_line_1","123 Innovation Drive") success = json.UpdateString("address_line_2","Suite 450") success = json.UpdateString("city","Seattle") success = json.UpdateString("state_province","WA") success = json.UpdateString("postal_code","98101") success = json.UpdateString("country","USA") json.EmitCompact = 0 Response.Write "<pre>" & Server.HTMLEncode( json.Emit()) & "</pre>" ' Result: ' { ' "company": { ' "billing": { ' "company_name": "TechNova Solutions Inc.", ' "address_line_1": "123 Innovation Drive", ' "address_line_2": "Suite 450", ' "city": "Seattle", ' "state_province": "WA", ' "postal_code": "98101", ' "country": "USA" ' } ' } ' } %> </body> </html> |
||||
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.