[erlang-questions] json to map
Thu Aug 27 16:01:13 CEST 2015
On Thu, Aug 27, 2015 at 6:04 AM, Roelof Wobben <r.wobben@REDACTED> wrote:
> Can this be a way to solve the challenge :
I think the challenge is to take smaller steps here...
Either solve this challenge by finding a JSON parser and using it, or
redefine the challenge to "create a simple parser".
Parsing JSON is a challenge, but I think you should define an interim
challenge first - one that's less challenging.
Strictly speaking the challenge of parsing JSON in Erlang (and
therefore being able to generate other forms) is not that challenging
as there are like half a dozen decent libraries to do that already. It
can be a challenge to find them, compile and use them - but not that
challenging. So why not just do that and cross this challenge off your
Then, create a new challenge, which is to parse some simply expression
like "1 + 1" into a term in Erlang. You can then do something
interesting with that term! See hint 
This is a good challenge IMO because you'll learn a lot about Erlang
(your goal) and you'll also experience the empowerment of building
your own language, even if a very simple one.
What I'm really trying to say is that it's challenging to define the
right challenge. Richard said it best:
> The first thing to do with these exercises is CRITICISE them.
But don't criticize mine :)
More information about the erlang-questions