XEROF

 

xlsgen 4.0 preview : import JSON streams


JSON (Javascript Object Notation) is all the rage in modern web applications and has taken over XML for storing data in streams thanks to how much it fits with the Javascript programming language. JSON is highly hierarchical in nature and defines several data types so that a consumer application knows upfront the type of data it is dealing with (with the notable exception of dates which remain application-specific).


(sample JSON)

{
"count":2,
"cache":false,
"environment":"live",
"remainingAccesses":231,
"data":[
{"date":"2013-12-09", "service":"Be On", "campaign_id":17088, "campaign_name":"DE Peek & Cloppenburg Review Urban Karaoke",
"project_id":119, "websites":3, "impressions":48, "views":1, "views_paid":0, "redirects":0, "playtoends":0},
{"date":"2013-12-09", "service":"Be On", "campaign_id":17280, "campaign_name":"DE Telekom Technischer Support",
"project_id":137, "websites":4, "impressions":189, "views":47, "views_paid":0, "redirects":2, "playtoends":9}
]
}




xlsgen 4.0 can import any JSON stream from a regular URL, a file or a memory buffer. A JSON stream can also be read by passing the URL directly to the workbook Open() method.

The import can be customized to provide styles on a per column basis.

xlsgen automatically infers hierarchies, cardinalities and what looks like a table set.



C/C++ code

xlsgen::IXlsJSONImportPtr json = worksheet->Import->JSON;

xlsgen::IXlsStylePtr style = worksheet->NewStyle();
style->Pattern->BackgroundColor = 0xFFFF00;
style->Font->Italic = TRUE;

json->Options->ColumnStyleByName[L"City"] = style;
json->ImportFile(L"input\\jsonfile3.json");



Posted on 30-September-2015 14:52 | Category: xlsgen, Excel generator | comment[0] | trackback[0]

 

 

<-- previous page

< September >
0102030405
0607080910
1112131415
1617181920
2122232425
2627282930



 

 

This site
Home
Articles

DevTools
CPU-Z
EditPlus
ExplorerXP
Kill.exe
OllyDbg
DependencyWalker
Process Explorer
autoruns.exe
Araxis
COM Trace injection
CodeStats
NetBrute
FileMon/Regmon
BoundsChecker
AQTime profiler
Source monitor
GDI leaks tracking
Rootkit revealer
Rootkit removal
RunAsLimitedUser(1)
RunAsLimitedUser(2)

 

 

Liens
Le Plan B
Un jour à Paris
Meneame
Rezo.net (aggr)
Reseau voltaire
Cuba solidarity project
Le grand soir
L'autre journal
Le courrier suisse
L'Orient, le jour
Agoravox (aggr)