Excuse me if this question has already been asked (this is my first time asking). The content of my string looks like this (after removing the whitespace):
"#home #blog description of page here ##article1 ##article2 #contact"
When parsed, it will produce a JSON object:
{
home: {},
blog: {
description: "description of page here",
pages: {
article1: {},
article2: {}
}
},
contact: {}
}
I am looking to create a function that accepts a string as input and outputs a JSON object. Any suggestions?
Thanks in advance.