NOTE: I am only interested in solutions that use Erlang (or Elixir) to parse these files! I am not interested in solutions that use Perl or Awk or Python or Regex. I am only interested in solutions that use Erlang.
I have 80,000+ "[login to view URL]" files. They appear to be written in some kind of Erlang data serialization format. I need a tool to convert them into JSON.
The attached "[login to view URL]" file is one of the files I need to parse.
Whereas the attached "[login to view URL]" file is how I need the original file to be transformed. Unfortunately I created this particular "[login to view URL]" by hand - I need a tool to do it automatically!
Here's a sample file (but its formatting is messed up - please download the attached file for the correct formatting).
{<<"app">>,<<"cloudex">>}.
{<<"build_tools">>,[<<"mix">>]}.
{<<"description">>,
<<"A library that helps with uploading image files and urls to cloudinary. Also provides an helper to generate transformations and cloudinary urls pointing to your images">>}.
{<<"elixir">>,<<"~> 1.4">>}.
{<<"files">>,
[<<"lib/[login to view URL]">>,<<"lib/cloudex/[login to view URL]">>,
<<"lib/cloudex/cloudinary_api/[login to view URL]">>,
<<"lib/cloudex/cloudinary_api/[login to view URL]">>,<<"lib/cloudex/[login to view URL]">>,
<<"lib/cloudex/[login to view URL]">>,<<"lib/cloudex/[login to view URL]">>,
<<"lib/cloudex/[login to view URL]">>,<<"lib/cloudex/[login to view URL]">>,<<"[login to view URL]">>,
<<"[login to view URL]">>,<<"LICENSE">>,<<"[login to view URL]">>]}.
{<<"licenses">>,[<<"WTFPL">>]}.
{<<"links">>,
[{<<"Docs">>,<<"[login to view URL]">>},
{<<"GitHub">>,<<"[login to view URL]">>}]}.
{<<"maintainers">>,[<<"Gerard de Brieder">>]}.
{<<"name">>,<<"cloudex">>}.
{<<"requirements">>,
[[{<<"app">>,<<"httpoison">>},
{<<"name">>,<<"httpoison">>},
{<<"optional">>,false},
{<<"requirement">>,<<"~> 0.11.0">>}],
[{<<"app">>,<<"poison">>},
{<<"name">>,<<"poison">>},
{<<"optional">>,false},
{<<"requirement">>,<<"~> 3.1.0">>}],
[{<<"app">>,<<"timex">>},
{<<"name">>,<<"timex">>},
{<<"optional">>,false},
{<<"requirement">>,<<"~> 3.1.7">>}],
[{<<"app">>,<<"tzdata">>},
{<<"name">>,<<"tzdata">>},
{<<"optional">>,false},
{<<"requirement">>,<<"~> 0.5.11">>}]]}.
{<<"version">>,<<"0.1.20">>}.