parsing issue - not passing valid JSON to view