First, notice that this there is no such syntax items.839.id.
Second, Chrisir gave you a Processing(Java) solution – for p5.js, JSON is imported directly to native JavaScript objects, which you then access with normal JavaScript notation. Additional reference / examples: