fixes #7015 - to_json passes options through correctly, remove array wrapping