OZP-282: Perform code review.
> OZP-61: Migrate RPC API.

1. Fixed some references to JSON that I forgot to change to the local variable of it, causing an error in IE.