What is this file format?

I need to parse a file which is in the following format:

"General" { "Description" = "Some Text" "Version" = "4" "ProjType" = "1" } "Configurations" { "Mice" { "BuildOutputs" = "BuildProject" "OutputFile" = "output.txt" } "Men" { "BuildOutputs" = "BuildProject" "ChangedSinceLastBuilt" = "True" } } 

Does anyone know what file format it is? If this is well known, then libraries can already be created to help disassemble it. It looks like it is JSON, but instead of colons it uses an equal sign, and instead of commas it uses a new line.

+5
source share
1 answer

You can just read the whole file and then convert = to : and each line is split into , - then you can parse it using the existing json library. You may need to insert ; at the end of the data.

+1
source

Source: https://habr.com/ru/post/979736/


All Articles