get serialized X value without JSON.parse