That works for me. Notice how you don't have any testament[1] index, only testament[0].

The @attributes part seems to be something the script that generates the JSON is creating, nothing you need to use JSON per say. I would remove it if I had access to the JSON-creating script, but perhaps it is used in some system that you do not see.