FOSSology  4.4.0
Open Source License Compliance by Open Source Software
json_writer.h File Reference

Handle JSON outputs. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void writeJson ()
 Write the scan output as a JSON.
 
char * unescapePathSeparator (const char *json)
 Unescape the path separator from JSON. More...
 
void initializeJson ()
 
void destroyJson ()
 

Detailed Description

Handle JSON outputs.

Definition in file json_writer.h.

Function Documentation

◆ destroyJson()

void destroyJson ( )
inline

Destory the semaphore the comma flag for JSON

Definition at line 109 of file json_writer.c.

◆ initializeJson()

void initializeJson ( )
inline

Initialize the semaphore and boolean to store flag for comma in JSON

Definition at line 100 of file json_writer.c.

◆ unescapePathSeparator()

char* unescapePathSeparator ( const char *  json)

Unescape the path separator from JSON.

Unescape the path separator from JSON string to make it readable.

`"\/folder\/folder2\/file" => "/folder/folder2/file"

Parameters
jsonString to unescape
Returns
The JSON with unescaped path separator.

Definition at line 59 of file json_writer.c.