Skip to content

Powershell function that splits text consisting of concatenated JSON objects into separate JSON chunks.

License

Notifications You must be signed in to change notification settings

jpmikkers/Delimit-Json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Delimit-Json

Powershell function that splits text consisting of concatenated JSON objects into separate JSON chunks. This is useful for processing JSON structured logging.

For example, the following script will act as tail-like monitoring for a json structured log file, showing new objects as soon as they are appended and complete.

Get-Content -Wait "jsonstructuredlog.txt" | Delimit-Json | %{ "New structured log object: $($_ | ConvertFrom-Json)" }

About

Powershell function that splits text consisting of concatenated JSON objects into separate JSON chunks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published