We're updating the issue view to help you get more done. 

JSON.parse exception with multiple XBlocks in one unit

Description

Using hotfix-2015-02-23

If a unit contains more than one XBlock instance that sets the json_args argument to initialize_js, an exception is thrown by JSON.parse when it tries to parse the concatenation of those JSON strings.

Steps to reproduce:
1. Install and enable any XBlock that passes a dict to xblock.fragment.Fragment#initialize_js, such as the attached
2. Create a Unit in Studio. Add two instances of that XBlock to this Unit.
3. Reload the page. Observe that JSON.parse complaints about an unexpected '{'
4. Load this Unit in LMS. Observe that JSON.parse complains about an unexpected character

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Unassigned

Reporter

William Ono

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Priority

CAT-3