node.js - How to parse this data provided by python? -


i have program written in python - rednotebook. modern journal being saved on pc locally in text files format:

$ cat ~/.rednotebook/data/2016-01.txt

gives me this:

10: {text: плов} 11: {text: '#переход      Легли около часа      Встали около 12 часов'} 12: {text: '{}  ''  ''{  ''}  \''  \{  \}'} 

note format looks json, single quotes ' instead of double quotes, has integers primary keys(?) indicate day in month. , escapes special characters prepending ' single quote.

so, question this:

how format of data called?

are there libraries parsing format in nodejs or golang?

upd1: have found post how merge 2 versions of rednotebook -

it's quite easy mess yaml markup used in month files, rednotebook issue warning when sees such file , can fix it.

i'll try parse yaml code

it turned yaml code. can parsed https://github.com/nodeca/js-yaml


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -