Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Thank you Overmind!

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread OvermindDL1
Hehe, happens to us all.  ^.^


On Friday, February 17, 2017 at 11:54:47 AM UTC-7, Rex van der Spuy wrote:
>
> Oops!! Ignore the error above!
> It works now completely!!!
>
> I just had another stray Debug.crash in my code that I had forgotten about 
> so I removed it.
>
> Thanks so much Peter, I could not have done this without your help
>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Oops!! Ignore the error above!
It works now completely!!!

I just had another stray Debug.crash in my code that I had forgotten about 
so I removed it.

Thanks so much Peter, I could not have done this without your help

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Peter Damoc
What does Json.Decode.decodeValue returns?

Can you share some code?






On Fri, Feb 17, 2017 at 7:09 PM, Rex van der Spuy 
wrote:

> Yes - how would I get the Err result?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Yes - how would I get the Err result?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Peter Damoc
Where is it failing silently?

Are you calling Json.Decode.decodeValue and not getting an Err?


On Fri, Feb 17, 2017 at 6:34 PM, Rex van der Spuy 
wrote:

> Hi Everyone!
>
> I'm trying to decode some JSON from localStorage.
> I'm able to load the JSON into my Elm app but the decoding is failing
> silently.
> Is there some way to find why decoding didn't succeed?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Hi Everyone!

I'm trying to decode some JSON from localStorage.
I'm able to load the JSON into my Elm app but the decoding is failing 
silently.
Is there some way to find why decoding didn't succeed?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.