Author Topic: Parse single plain text line with - separators to json  (Read 32 times)

Bill

  • Newbie
  • *
  • Posts: 5
Our automation only outputs a single line of plain text:  Text=cut duration seconds - category - artist - title - .    Can Magic RDS parse to values %1%, %2%, %3%, %4% and output to json for DTS Autostage?

Jan

  • Hero Member
  • *****
  • Posts: 1337
Re: Parse single plain text line with - separators to json
« Reply #1 on: Today at 09:02:03 am »
I will prepare a procedure for you that will achieve the desired result. However, it would be more appropriate to ask the developer of the automation software to implement an XML/JSON text output. This is because if a hyphen appears in a song artist, you might end up with an incorrect result.

I need to know from you what the structure of the JSON file accepted by DTS Autostage should be.