These are chat archives for opal/opal

5th
Sep 2017
meh.
@meh
Sep 05 2017 14:14
require 'json'
kapilpipaliya
@kapilpipaliya
Sep 05 2017 15:16
Thanks
Then we convert JSON to hash?
meh.
@meh
Sep 05 2017 15:28
it has the same API as the Ruby one
from what I recall
kapilpipaliya
@kapilpipaliya
Sep 05 2017 15:30
I understand it.☺️
Elia Schito
@elia
Sep 05 2017 15:37
yes, JSON.parse('{"foo": 123}') will result in the hash {foo: 123}
kapilpipaliya
@kapilpipaliya
Sep 05 2017 15:38
I have JSON file. I want to load. It contains Sidebar menu items. Like icon title link.
Elia Schito
@elia
Sep 05 2017 16:01
@kapilpipaliya you mean loading it via AJAX?
kapilpipaliya
@kapilpipaliya
Sep 05 2017 16:02
no, it's server static file
Elia Schito
@elia
Sep 05 2017 16:03
@kapilpipaliya you need to tell more otherwise the question is too broad
kapilpipaliya
@kapilpipaliya
Sep 05 2017 16:07
currently I only have this information only. I will use 'require JSON'.