Update the JSON parsing logic to support Xcode6b2

Update the JSON parsing logic to support Xcode 6 beta2
fix #2

Move all parsing error messages in one place.