If you're using the RPC console, you need to surround the entire JSON with single quotes ('), otherwise it will have some parsing issues. If you are using a shell, you may need to do the same, or otherwise escape the double quotes (").
I found a way to do it using a json file with the linux shell using jq but I tried again with '...' and it works on both the bitcoin-qt console and the linux shell, but with the linux shell it bugs out when you paste it, but if you press enter it will import fine. I was wondering if there is a limit of lenght that you can paste on either the bitcoin-qt console or the linux shell because I don't want to find out that there is some sort of limit and it screws up. I mean maybe for someone that has a ton of transactions this may be a possibility and you want to know these things before you try.