Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

implement loadJSONObject #79

Open
davidfokkema opened this issue Jan 25, 2014 · 2 comments
Open

implement loadJSONObject #79

davidfokkema opened this issue Jan 25, 2014 · 2 comments

Comments

@davidfokkema
Copy link

Processing 2.0 loadJSONObject is very nice. However, it is not implemented in processing.js. Would this be relatively easy to do?

@Pomax
Copy link
Member

Pomax commented Jan 26, 2014

reading in the JSON object is a matter of calling the browser-built-in JSON.parse function, the only tricky bit (if that) would be the getInt etc functions.

@Pomax Pomax changed the title loadJSONObject not implemented implement loadJSONObject Feb 23, 2015
@Pomax
Copy link
Member

Pomax commented Feb 23, 2015

In Pjs context we won't need to worry about types, so all getters can simply return the associated field and leave it at that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants